aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-10 15:00:01 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-10 15:00:35 -0700
commitfa72d7eeb13a356d00a0694384938c23a90529da (patch)
treee7c1515d35f3fe68e1d7561ad08280c0f250ee64 /core/operators.nom
parentde34592dbebfa8882f495694d73f2a8b1e2d0856 (diff)
Fixing up error reporting and ripping out LDT-specific code (now a
debugger can be provided by a command line flag)
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom1
1 files changed, 1 insertions, 0 deletions
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))"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~