From 16d127abb507751808eca65108710d3de1fd3cab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jun 2018 15:44:29 -0700 Subject: Initial working version. --- nomsu_tree.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nomsu_tree.lua') diff --git a/nomsu_tree.lua b/nomsu_tree.lua index 7288613..05fb22c 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -7,6 +7,7 @@ do end local Source Source = require("code_obj").Source +local unpack = unpack or table.unpack local AST = { } AST.is_syntax_tree = function(n) return type(n) == 'table' and getmetatable(n) and AST[n.type] == getmetatable(n) @@ -21,7 +22,8 @@ local types = { "Dict", "DictEntry", "IndexChain", - "Action" + "Action", + "FileChunks" } for _index_0 = 1, #types do local name = types[_index_0] -- cgit v1.2.3