aboutsummaryrefslogtreecommitdiff
path: root/core/metaprogramming.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/metaprogramming.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/metaprogramming.nom')
-rw-r--r--core/metaprogramming.nom3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom
index fd70119..47faefe 100644
--- a/core/metaprogramming.nom
+++ b/core/metaprogramming.nom
@@ -127,6 +127,9 @@ immediately
lua:convert_to_statements();
return lua;
+ action [%tree with vars %vars]
+ =lua "nomsu:tree_with_replaced_vars(\%tree, \%vars)"
+
compile [declare locals in %code] to
Lua value "\(%code as lua expr):declare_locals()"