diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-26 15:52:38 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-26 15:53:00 -0700 |
| commit | 65dc1f2196b46dbd527d49da113515bea825416d (patch) | |
| tree | 02dbbe6528dc9c4a1e71a522da624a08f1179d64 /core/operators.nom | |
| parent | 42578872c72ec46b256a093f74482fb6e5b8e4b9 (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.nom | 2 |
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))" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
