diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-14 14:52:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-14 14:53:03 -0700 |
| commit | c9ff0ff04b2d1922bcfe5b1106b9979c29b167a2 (patch) | |
| tree | 76616ba5dddc1d4b11c88fa16460ae673e2969a0 /core | |
| parent | d535dc57940f6c9558d3b588d53b44a87b2a8ed2 (diff) | |
Fixed up some edge cases with parsing and comments.
Diffstat (limited to 'core')
| -rw-r--r-- | core/metaprogramming.nom | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 631a869..d445737 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -148,13 +148,15 @@ action [%var as lua identifier, %var as lua id] elseif \%var.type == 'Var' then return string.as_lua_id(\%var[1]) elseif \%var.type == 'Action' then return "A"..string.as_lua_id(\%var.stub) end + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile [% is syntax tree] to Lua value "AST.is_syntax_tree(\(% as lua expr))" compile [% is %kind syntax tree] to Lua value "AST.is_syntax_tree(\(% as lua expr), \(%kind as lua expr))" - + compile [%tree with %t -> %replacement] to Lua value ".." \(%tree as lua expr):map(function(\(%t as lua expr)) |
