diff options
Diffstat (limited to 'nomsu_tree.lua')
| -rw-r--r-- | nomsu_tree.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nomsu_tree.lua b/nomsu_tree.lua index baec3ef..7288613 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -116,4 +116,16 @@ AST.Action.__init = function(self) end self.stub = concat(stub_bits, " ") end +AST.Action.get_args = function(self) + local _accum_0 = { } + local _len_0 = 1 + for _index_0 = 1, #self do + local tok = self[_index_0] + if type(tok) ~= 'string' then + _accum_0[_len_0] = tok + _len_0 = _len_0 + 1 + end + end + return _accum_0 +end return AST |
