From 01aa199f7acfe9af57c5970793259b36e060fd11 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 May 2018 16:36:21 -0700 Subject: Adding support for coroutines, and cleaning up comment syntax. --- core/metaprogramming.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/metaprogramming.nom') diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 475cdeb..a2c3820 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -95,7 +95,7 @@ immediately replacements = "{"..table.concat(replacements, ", ").."}"; lua:append([[) local template = nomsu:parse(Nomsu(]]..repr(tree.source)..[[, ]]..template..[[)); - local replacement = nomsu:tree_with_replaced_vars(template, ]]..replacements..[[); + local replacement = nomsu:tree_with_replacements(template, ]]..replacements..[[); return replacement:as_lua(nomsu); end);]]); return lua; @@ -125,7 +125,7 @@ immediately =lua "\%tree:as_lua(nomsu):as_statements()" action [%tree with vars %vars] - =lua "nomsu:tree_with_replaced_vars(\%tree, \%vars)" + =lua "nomsu:tree_with_replacements(\%tree, \%vars)" compile [declare locals in %code] to Lua value "\(%code as lua expr):declare_locals()" -- cgit v1.2.3