aboutsummaryrefslogtreecommitdiff
path: root/core/control_flow.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-10 22:47:03 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-10 22:47:18 -0700
commit4126589afef1c3c14cfa5a3a0f43cc6e98569f1d (patch)
tree3a6aee67f531c76f2b979f4b81cba5fc53b3fc6e /core/control_flow.nom
parent77c11a2443adb883621b4253d63fe40db048bd85 (diff)
Cleanup: removed "File" type trees (now just Block), overhauled
how_do_i.nom, added "result of %" macro, which allowed comprehensions to be way more concisely defined. Moved len() operator into the nomsu environment.
Diffstat (limited to 'core/control_flow.nom')
-rw-r--r--core/control_flow.nom8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom
index eaf29f4..2816dfb 100644
--- a/core/control_flow.nom
+++ b/core/control_flow.nom
@@ -423,3 +423,11 @@ immediately
end
end --do-then-always
+# Inline thunk:
+immediately
+ compile [result of %body] to
+ Lua value ".."
+ (function()
+ \(%body as lua statements)
+ end)()
+