From 4126589afef1c3c14cfa5a3a0f43cc6e98569f1d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 10 May 2018 22:47:03 -0700 Subject: 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. --- core/control_flow.nom | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/control_flow.nom') 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)() + -- cgit v1.2.3