aboutsummaryrefslogtreecommitdiff
path: root/core/coroutines.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/coroutines.nom
parent7d2b7199d87930096b7fd799709fe0105d51eccb (diff)
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'core/coroutines.nom')
-rw-r--r--core/coroutines.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/coroutines.nom b/core/coroutines.nom
index 782c20e..27797fa 100644
--- a/core/coroutines.nom
+++ b/core/coroutines.nom
@@ -18,11 +18,11 @@ test:
assume (%nums == [4, 5, 6, 6, 6]) or barf "Coroutine iteration failed"
[coroutine %body, generator %body] all compile to "\
..(function()
- \(%body as lua statements)
+ \(%body as lua)
end)"
(-> %) compiles to "coroutine.yield(true, \((% as lua expr) if % else "nil"))"
(for % in coroutine %co %body) compiles to "\
..for _junk,\(% as lua expr) in coroutine.wrap(\(%co as lua expr)) do
- \(%body as lua statements)
+ \(%body as lua)
end"