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/4.11.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compatibility/4.11.nom') diff --git a/lib/compatibility/4.11.nom b/lib/compatibility/4.11.nom index 053e1c8..e30734d 100644 --- a/lib/compatibility/4.11.nom +++ b/lib/compatibility/4.11.nom @@ -25,7 +25,7 @@ upgrade action "set" to "4.11" via for $entry in $tree.2 at $i: $lhs.$i = $entry.1 $rhs.$i = $entry.2 - return (SyntaxTree {.type = "Action", .source = $tree.source} $lhs "=" $rhs) + return ("Action" tree from $tree.source with $lhs "=" $rhs) upgrade action "1 with 2 ~>" to "4.11" via for $tree: -- cgit v1.2.3