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/metaprogramming.nom | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/metaprogramming.nom') 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()" -- cgit v1.2.3