diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:05:18 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:05:56 -0800 |
| commit | 9a75d25c843b03e3671b71384fd48deb0607db43 (patch) | |
| tree | 8baf212544a15fde2150fe790b4414d608a55663 /compatibility/2.nom | |
| parent | 65ec3f597f0f39e01fa44a14ea4971c797a015c2 (diff) | |
Lots of fixes to the upgrading and codegen/autoformatting pipeline, also
deleted nomnom files, since they're mostly not needed anymore.
Diffstat (limited to 'compatibility/2.nom')
| -rw-r--r-- | compatibility/2.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compatibility/2.nom b/compatibility/2.nom index 5c78e29..84331a6 100644 --- a/compatibility/2.nom +++ b/compatibility/2.nom @@ -23,13 +23,13 @@ upgrade %tree to "2" as: "if", "unless", "for 1 in", "for 1 = 2 in", "repeat while 1" "repeat 1 times", "repeat", "repeat until 1", "for 1 in 2 to 3 by" "for 1 in 2 to 3 via", "for 1 in 2 to", "for 1 2 in" - "do", "for 1 in recursive", "test", "with", "result of" + "do", "for 1 in recursive", "test", "with", "result of", "when" for %n in %need_blocks: if (%tree.stub is %n): %bits = (((% upgraded) if (% is syntax tree) else %) for % in %tree) unless ((%bits::last) is "Block" syntax tree): %body = (%bits::last) - %bits.(size of %bits) = (=lua "Block(\%body.source, \%body)") + %bits.(size of %bits) = (=lua "SyntaxTree{type='Block', source=\%body.source, \%body}") - return (=lua "Action(\%tree.source, unpack(\%bits))") + return (=lua "SyntaxTree{type='Action', source=\%tree.source, unpack(\%bits)}") |
