diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-10-29 13:00:08 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-10-29 13:00:30 -0700 |
| commit | 23abab4f809e8d4b825746580082292db700036b (patch) | |
| tree | 8eb95a3b781547abedadd08705a6e6291662737c /nomnom | |
| parent | be1df7ccd3fb5352ca666129aee93c56b5b27b40 (diff) | |
Some cleanups and fixes, made the parser more permissive of prematurely
terminated files.
Diffstat (limited to 'nomnom')
| -rw-r--r-- | nomnom/decompile.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nomnom/decompile.nom b/nomnom/decompile.nom index 54afb08..fb64f7c 100644 --- a/nomnom/decompile.nom +++ b/nomnom/decompile.nom @@ -52,7 +52,7 @@ action [%tree decompiled inline]: return %nomsu "Text": - %nomsu = (Nomsu Code from %tree ["\""]) + %nomsu = (Nomsu Code from %tree []) for %text in recursive %tree: for %bit in %text at %i: if (%bit is text): @@ -87,14 +87,14 @@ action [%tree decompiled inline]: "DictEntry": set {%key:%tree.1, %value:%tree.2} if (all of [%key.type == "Text", (size of %key) == 1, %key.1 is a nomsu identifier]): - %nomsu = (Nomsu Code from %key [key.1]) + %nomsu = (Nomsu Code from %key [%key.1]) ..else: %nomsu = (%key decompiled inline) if (%key.type == "Action"): %nomsu::parenthesize - %nomsu::add ":" if %value: + %nomsu::add ":" %nomsu::add (%value decompiled inline) return %nomsu |
