From 10bd72e858a8ffaacafa296dbbc429dc73b0111c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 18 Jan 2019 14:22:17 -0800 Subject: Added `tree` back as a parameter to compile actions, which helps with better error reporting, e.g. for (fail) (no arguments). Overall better error reporting now. Also added shorthand ("Action" tree with ...) for (SyntaxTree {.type = "Action", .1 = ...}). --- lib/compatibility/compatibility.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compatibility/compatibility.nom') diff --git a/lib/compatibility/compatibility.nom b/lib/compatibility/compatibility.nom index 419f589..45ea1d6 100644 --- a/lib/compatibility/compatibility.nom +++ b/lib/compatibility/compatibility.nom @@ -43,7 +43,7 @@ external: ($t is syntax tree): $args = [] for $k = $v in $t: - if ((type of $k) == "number"): + if ((type of $k) == "a number"): $args, add (make tree $v) ..else: $args, add "\($k)=\(make tree $v)" -- cgit v1.2.3