diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-22 11:44:07 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-22 11:44:07 -0700 |
| commit | 6882862d0ff226d73bc6a010d335896c44d8cde9 (patch) | |
| tree | fe91165713eacf3f55b3884be27bd305f9ad88a2 /lib/utils.nom | |
| parent | d3a5fc73bc9aa37f58b2e159a9959afb53df73e3 (diff) | |
Cleaned up code generation to have less cruft.
Diffstat (limited to 'lib/utils.nom')
| -rw-r--r-- | lib/utils.nom | 6 |
1 files changed, 3 insertions, 3 deletions
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))"\) |
