aboutsummaryrefslogtreecommitdiff
path: root/syntax_tree.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-09-15 20:20:40 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-09-15 20:20:46 -0700
commit2282085e13f11581d2d5c0ac1491d54da4a3e19d (patch)
treec556f53e4e90243721a23fe4507cbcfb5c6fb5eb /syntax_tree.lua
parentf8cfdd0f2276afe2f924295c192256601db595db (diff)
Initial working version.
Diffstat (limited to 'syntax_tree.lua')
-rw-r--r--syntax_tree.lua4
1 files changed, 2 insertions, 2 deletions
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)