From a2f07415c5284bf94c146cea6eed4a15f171b9ab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 14:48:23 -0800 Subject: Deprecating (% as lua statements) and (% as lua return) --- core/operators.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/operators.nom') diff --git a/core/operators.nom b/core/operators.nom index 66185f7..38fc9a8 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -94,7 +94,7 @@ test: assume ((%foozle == "inner") and (%y == "outer")) or barf "\ ..'with external' failed." (with external %externs %body) compiles to: - %body_lua = (%body as lua statements) + %body_lua = (%body as lua) lua> "\ ..\%body_lua:remove_free_vars(table.map(\%externs, function(v) return compile(v):text() end))" return %body_lua @@ -109,7 +109,7 @@ test: assume (%x == 1) or barf "'with' scoping failed" assume (%z == (nil)) or barf "'with' scoping failed" (with %assignments %body) compiles to: - %lua = (%body as lua statements) + %lua = (%body as lua) lua> "\ ..local lhs, rhs = LuaCode(tree.source), LuaCode(tree.source) local vars = {} -- cgit v1.2.3