From 6882862d0ff226d73bc6a010d335896c44d8cde9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 22 Sep 2017 11:44:07 -0700 Subject: Cleaned up code generation to have less cruft. --- lib/utils.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/utils.nom') diff --git a/lib/utils.nom b/lib/utils.nom index ff261f7..41c5d61 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -5,16 +5,16 @@ rule [error!, panic!, fail!, abort!] =: compiler "error"[] rule [error %msg] =: compiler "error"[%msg] -macro block [assert %condition] =: ".." +macro statement [assert %condition] =: ".." |if not (\%condition as lua\) then | compiler:error() |end -macro block [assert %condition %msg] =: ".." +macro statement [assert %condition %msg] =: ".." |if not (\%condition as lua\) then | compiler:error(\%msg as lua\) |end -macro block [show generated lua %block] =: ".." +macro statement [show generated lua %block] =: ".." |compiler:writeln(\lua expr "compiler:repr(compiler:tree_to_lua(vars.block.value))"\) -- cgit v1.2.3