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/tools/repl.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tools') diff --git a/lib/tools/repl.nom b/lib/tools/repl.nom index 63d9e30..ea0cc8a 100755 --- a/lib/tools/repl.nom +++ b/lib/tools/repl.nom @@ -68,7 +68,7 @@ command line program with $args: $ret = (run $lua) ..if it fails with $err: say $err ..if it succeeds: - if (type of $ret) is: + if (lua type of $ret) is: "nil": do nothing -- cgit v1.2.3