diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-03 00:52:01 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-03 00:52:01 -0800 |
| commit | cfee75b21b307b5d57c215cad5b1c089c91182fc (patch) | |
| tree | e6d605892aced717a4519f7860c0b143d11819a6 /lib/metaprogramming.nom | |
| parent | 3bd12b5331f7e5ec939cb8130350ea68fcbd6ceb (diff) | |
Reworked {} a bit and added dicts to the core language. Did some more
testing on string interpolations too.
Diffstat (limited to 'lib/metaprogramming.nom')
| -rw-r--r-- | lib/metaprogramming.nom | 2 |
1 files changed, 2 insertions, 0 deletions
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]) |
