From fa72d7eeb13a356d00a0694384938c23a90529da Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 10 Jul 2018 15:00:01 -0700 Subject: Fixing up error reporting and ripping out LDT-specific code (now a debugger can be provided by a command line flag) --- core/operators.nom | 1 + 1 file changed, 1 insertion(+) (limited to 'core/operators.nom') diff --git a/core/operators.nom b/core/operators.nom index d434ea7..0712ada 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -163,6 +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))" +test: assume: (length of [1,2,3]) = 3 compile [length of %list, || %list ||] to: Lua value "(#\(%list as lua expr))" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3