From 2282085e13f11581d2d5c0ac1491d54da4a3e19d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 15 Sep 2018 20:20:40 -0700 Subject: Initial working version. --- syntax_tree.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'syntax_tree.lua') diff --git a/syntax_tree.lua b/syntax_tree.lua index 38e71ef..72b510e 100644 --- a/syntax_tree.lua +++ b/syntax_tree.lua @@ -42,10 +42,10 @@ for _index_0 = 1, #types do return getmetatable(x) == self end cls.__tostring = function(self) - return tostring(self.type) .. tostring(repr(self)) + return tostring(self.type) .. tostring(repr(self, (function() end))) end cls.__repr = function(self) - return tostring(self.type) .. tostring(repr(self)) + return tostring(self.type) .. tostring(repr(self, (function() end))) end cls.source_code_for_tree = setmetatable({ }, { __index = function(self, t) -- cgit v1.2.3