aboutsummaryrefslogtreecommitdiff
path: root/core/operators.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:40 -0800
commita2f07415c5284bf94c146cea6eed4a15f171b9ab (patch)
tree925ab30d70cac56c24e007f7daa0b89b9f371f3c /core/operators.nom
parent7d2b7199d87930096b7fd799709fe0105d51eccb (diff)
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'core/operators.nom')
-rw-r--r--core/operators.nom4
1 files changed, 2 insertions, 2 deletions
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 = {}