From 652c29bdef1f0991cc13bef59d6dc78b657ae9a4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 8 Nov 2018 15:23:22 -0800 Subject: Major overhaul, splitting nomsu_compiler into nomsu_environment, nomsu_compiler, and nomsu_decompiler. Also added comprehensions. --- syntax_tree.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'syntax_tree.lua') 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 -- cgit v1.2.3