From 23abab4f809e8d4b825746580082292db700036b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 29 Oct 2018 13:00:08 -0700 Subject: Some cleanups and fixes, made the parser more permissive of prematurely terminated files. --- 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 960440e..55756bb 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -157,7 +157,7 @@ compile [with %assignments %body] to: test: assume ((5 wrapped around 2) == 1) or barf "mod not working" compile [%x wrapped around %y, %x mod %y] to (..) - Lua value "(\(%x as lua expr) % \(%y as lua expr))" + Lua value "((\(%x as lua expr)) % (\(%y as lua expr)))" # 3-part chained comparisons # (uses a lambda to avoid re-evaluating middle value, while still being an expression) -- cgit v1.2.3