From cfee75b21b307b5d57c215cad5b1c089c91182fc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 3 Jan 2018 00:52:01 -0800 Subject: Reworked {} a bit and added dicts to the core language. Did some more testing on string interpolations too. --- lib/metaprogramming.nom | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/metaprogramming.nom') diff --git a/lib/metaprogramming.nom b/lib/metaprogramming.nom index e86b904..b4c1283 100644 --- a/lib/metaprogramming.nom +++ b/lib/metaprogramming.nom @@ -107,6 +107,8 @@ rule [%tree as lua statements] =: compile [nomsu] to: "nomsu" compile [nomsu's %key] to: "nomsu[\(%key as lua)]" compile [nomsu %method %args] to: "nomsu[\(%method as lua)](nomsu, unpack(\(%args as lua)))" +compile [tree %tree with %replacements] to: ".." + nomsu:replaced_vars(\(%tree as lua), \(%replacements as lua)) parse [rule %signature] as: (nomsu's "defs")->(nomsu "get_stub" [\%signature]) -- cgit v1.2.3