From a5bbce315dd9e6861d426bb16a3d792e2a3c0dfc Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 3 May 2018 22:33:44 -0700 Subject: Minor tweaks/cleanups. --- nomsu_tree.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nomsu_tree.lua') diff --git a/nomsu_tree.lua b/nomsu_tree.lua index 5b24b75..a4940af 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -186,8 +186,8 @@ local math_expression = re.compile([[ ([+-] " ")* "%" (" " [*/^+-] (" " [+-])* " Tree("Action", { as_lua = function(self, nomsu) local stub = self:get_stub() - local macro = nomsu.environment.MACROS[stub] - if macro then + local compile_action = nomsu.environment.COMPILE_ACTIONS[stub] + if compile_action then local args do local _accum_0 = { } @@ -205,7 +205,7 @@ Tree("Action", { do local _accum_0 = { } local _len_0 = 1 - local _list_0 = nomsu.environment.ARG_ORDERS[macro][stub] + local _list_0 = nomsu.environment.ARG_ORDERS[compile_action][stub] for _index_0 = 1, #_list_0 do local p = _list_0[_index_0] _accum_0[_len_0] = args[p - 1] @@ -213,7 +213,7 @@ Tree("Action", { end args = _accum_0 end - local ret = macro(self, unpack(args)) + local ret = compile_action(self, unpack(args)) return ret end local action = rawget(nomsu.environment.ACTIONS, stub) -- cgit v1.2.3