From 95ee15982bb021e94a4976741a0bcdfe5f5d6992 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 11 May 2018 13:53:40 -0700 Subject: Switched to use inline nomsu generation for `Nomsu` tree lua compilation and removed some dead code around Nomsu.debug --- core/metaprogramming.nom | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') 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 -- cgit v1.2.3