From 23abab4f809e8d4b825746580082292db700036b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 29 Oct 2018 13:00:08 -0700 Subject: Some cleanups and fixes, made the parser more permissive of prematurely terminated files. --- nomnom/decompile.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nomnom') 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 -- cgit v1.2.3