diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-15 15:21:32 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-15 15:22:03 -0700 |
| commit | 28cd9ae0b7a09d8f2cd0cd929f1ebdce4b081502 (patch) | |
| tree | 9b306517621da0ecbc824c68382044515581d8ef /core | |
| parent | ae979c3718b6b472148a19f64aa3e0878e1e259d (diff) | |
More API cleanup, and fixed a bug with optimized lua files generating
spurious circular import errors.
Diffstat (limited to 'core')
| -rw-r--r-- | core/metaprogramming.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index eafe583..475cdeb 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -20,7 +20,7 @@ immediately lua:append("function(tree"); local args = {}; for i,tok in ipairs(\%actions.value[1].value) do - if tok.type == "Var" then args[#args+1] = nomsu:var_to_lua_identifier(tok.value); end + if tok.type == "Var" then args[#args+1] = tok:as_lua(nomsu); end end for i, arg in ipairs(args) do lua:append(", "); @@ -52,7 +52,7 @@ immediately lua:append("function("); local args = {}; for i,tok in ipairs(\%actions.value[1].value) do - if tok.type == "Var" then args[#args+1] = nomsu:var_to_lua_identifier(tok.value); end + if tok.type == "Var" then args[#args+1] = tok:as_lua(nomsu); end end for i, arg in ipairs(args) do lua:append(arg); @@ -83,7 +83,7 @@ immediately lua:append("function(tree"); local args = {}; for i,tok in ipairs(\%shorthand.value[1].value) do - if tok.type == "Var" then args[#args+1] = nomsu:var_to_lua_identifier(tok.value); end + if tok.type == "Var" then args[#args+1] = tostring(tok:as_lua(nomsu)); end end for i, arg in ipairs(args) do lua:append(", "); @@ -157,7 +157,7 @@ immediately immediately compile [nomsu] to: Lua value "nomsu" - compile [%var as lua identifier] to: Lua value "nomsu:var_to_lua_identifier(\(%var as lua expr))" + compile [%var as lua identifier] to: Lua value "\(%var as lua expr):as_lua(nomsu)" # Compiler tools immediately |
