# In reply to @Elegantbeef # "https://github.com/nim-lang/Nim/blob/version-2-0/li": Thanks, ended up getting # it working with: macro stackStringA(sect) = result = newStmtList() let def = sect[0] bracketExpr = makeBracketExpression(def[2].strVal, false) identDef = newIdentDefs(def[0], bracketExpr) varSect = newNimNode(nnkVarSection).add identDef result.add varSect result.assignChars(def[0], def[2].strVal, false # still a little confused what sect is but that was super helpful