diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 15:44:29 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 15:44:35 -0700 |
| commit | 16d127abb507751808eca65108710d3de1fd3cab (patch) | |
| tree | 53a78ad2e88a95048eea76426e62c05c2c5102a5 /nomsu_tree.lua | |
| parent | fc71b0331b6122c774585c3ab93e6e55978ecaf2 (diff) | |
Initial working version.
Diffstat (limited to 'nomsu_tree.lua')
| -rw-r--r-- | nomsu_tree.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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] |
