diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 21:59:25 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-14 21:59:43 -0700 |
| commit | 82cfd3e54b5910843c091a9fb6ef3ad6b64ba757 (patch) | |
| tree | aed04a3910646c82447b9b4b515169005b3010af /nomsu_tree.lua | |
| parent | 282565a309aef632502a64fef0a67b0b7efcfaaa (diff) | |
More streamlining and cleanup. Especially for core/metaprogramming.nom
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 |
