From 65dc1f2196b46dbd527d49da113515bea825416d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 26 Jun 2018 15:52:38 -0700 Subject: Cleaning up metaprogramming a bit and fixing/adding test for recursion control flow. --- core/operators.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/operators.nom') 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))" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3