aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-26 15:52:38 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-26 15:53:00 -0700
commit65dc1f2196b46dbd527d49da113515bea825416d (patch)
tree02dbbe6528dc9c4a1e71a522da624a08f1179d64 /core/operators.nom
parent42578872c72ec46b256a093f74482fb6e5b8e4b9 (diff)
Cleaning up metaprogramming a bit and fixing/adding test for recursion
control flow.
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/operators.nom b/core/operators.nom
index 0756751..d434ea7 100644
--- a/core/operators.nom
+++ b/core/operators.nom
@@ -163,7 +163,7 @@ compile [%x ARSHIFT %shift, %x >> %shift] to: Lua value "(\(%x as lua expr) >> \
# Unary operators
compile [- %] to: Lua value "(- \(% as lua expr))"
compile [not %] to: Lua value "(not \(% as lua expr))"
-compile [length of %list] to: Lua value "(#\(%list as lua expr))"
+compile [length of %list, || %list ||] to: Lua value "(#\(%list as lua expr))"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~