aboutsummaryrefslogtreecommitdiff
path: root/syntax_tree.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-08 15:23:22 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-08 15:24:15 -0800
commit652c29bdef1f0991cc13bef59d6dc78b657ae9a4 (patch)
tree8e335399e77b1893657b9fa985db0738034daac3 /syntax_tree.lua
parent1f3660f393c1a17988a15b89f18686b28e51a9e7 (diff)
Major overhaul, splitting nomsu_compiler into nomsu_environment,
nomsu_compiler, and nomsu_decompiler. Also added comprehensions.
Diffstat (limited to 'syntax_tree.lua')
-rw-r--r--syntax_tree.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/syntax_tree.lua b/syntax_tree.lua
index fe4f6dc..6615f9b 100644
--- a/syntax_tree.lua
+++ b/syntax_tree.lua
@@ -22,6 +22,9 @@ as_lua = function(self)
end
end
end
+ if self.as_lua then
+ return self:as_lua()
+ end
return error("Not supported: " .. tostring(self))
end
local SyntaxTree