# Pastebin JsPVF5Sn import macros macro tester(): typed = result = newNimNode(nnkStmtList) let constSection = newNimNode(nnkConstSection) let constDef = newNimNode(nnkConstDef) constDef.add(newIdentNode("TestConst")) constDef.add(newIdentNode("string")) constDef.add(newStrLitNode("Hello, World!")) constSection.add(constDef) result.add(constSection) tester() echo TestConst