diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-11 13:53:40 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-11 13:54:24 -0700 |
| commit | 95ee15982bb021e94a4976741a0bcdfe5f5d6992 (patch) | |
| tree | d76886a98cf1b6655e591a98039a4044bdafbe08 /core | |
| parent | 113782ebd1c9b13284f6c418c90008734fec27ac (diff) | |
Switched to use inline nomsu generation for `Nomsu` tree lua
compilation and removed some dead code around Nomsu.debug
Diffstat (limited to 'core')
| -rw-r--r-- | core/metaprogramming.nom | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 47faefe..a63ec32 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -89,7 +89,7 @@ immediately lua:append(", "); lua:append(arg); end - local template = repr(tostring(\%longhand:as_nomsu())); + local template = repr(tostring(\%longhand:as_nomsu(true))); local replacements = {}; for i, a in ipairs(args) do replacements[i] = a.."="..a; end replacements = "{"..table.concat(replacements, ", ").."}"; @@ -166,8 +166,6 @@ immediately immediately compile [run %code] to Lua value "nomsu:run(Nomsu(\(=lua "tostring(tree.source)"), \(%code as lua expr)))" - parse [enable debugging] as: lua> "nomsu.debug = true;" - parse [disable debugging] as: lua> "nomsu.debug = false;" immediately compile [show lua %block] to |
