diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 14:22:17 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 14:22:48 -0800 |
| commit | 10bd72e858a8ffaacafa296dbbc429dc73b0111c (patch) | |
| tree | 3dec18257ac6d1affe78aa33a9b389a25eda1256 /lib/core/things.nom | |
| parent | 520acd39795766354fc44c6e15f5f33f255ca33a (diff) | |
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 = ...}).
Diffstat (limited to 'lib/core/things.nom')
| -rw-r--r-- | lib/core/things.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/things.nom b/lib/core/things.nom index 104c8d0..5f74b1a 100644 --- a/lib/core/things.nom +++ b/lib/core/things.nom @@ -101,8 +101,8 @@ external: $class_body with vars { : for $v in $vars: add ($v as lua expr, text) = - SyntaxTree {.type = "IndexChain"} (SyntaxTree {.type = "Var"} "self") - SyntaxTree {.type = "Index"} (SyntaxTree {.type = "Text"} $v.1) + "IndexChain" tree with ("Var" tree with "self") + "Index" tree with ("Text" tree with $v.1) } $lua = Lua (" |
