From 21d0d7901cc378181034c0db6221bca5adca591e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Sep 2018 14:11:54 -0700 Subject: Upgraded nomsu.2.peg and fixed minor bug in Source serialization in trees. --- 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 b4cf45e..230a915 100644 --- a/syntax_tree.lua +++ b/syntax_tree.lua @@ -43,12 +43,12 @@ for _index_0 = 1, #types do end cls.__tostring = function(self) return tostring(self.type) .. tostring(repr(self, (function(x) - return Source:is_instance(x) and tostring(x) or nil + return Source:is_instance(x) and repr(tostring(x)) or nil end))) end cls.__repr = function(self) return tostring(self.type) .. tostring(repr(self, (function(x) - return Source:is_instance(x) and tostring(x) or nil + return Source:is_instance(x) and repr(tostring(x)) or nil end))) end cls.source_code_for_tree = { } -- cgit v1.2.3