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 /nomsu_compiler.lua | |
| 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 'nomsu_compiler.lua')
| -rw-r--r-- | nomsu_compiler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index c2502d8..542afe5 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -93,7 +93,7 @@ compile = function(self, tree) end args = _accum_0 end - local ret = compile_action(self, unpack(args)) + local ret = compile_action(self, tree, unpack(args)) if ret == nil then local info = debug.getinfo(compile_action, "S") local filename = Source:from_string(info.source).filename |
