aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-03 22:33:44 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-03 22:34:00 -0700
commita5bbce315dd9e6861d426bb16a3d792e2a3c0dfc (patch)
treef52d66e366bcc9c2aee002a27e69febc6cadef9b /nomsu_tree.lua
parentbf60ac28c5ab128a15d1b0a2d5f1021dbe7081fd (diff)
Minor tweaks/cleanups.
Diffstat (limited to 'nomsu_tree.lua')
-rw-r--r--nomsu_tree.lua8
1 files changed, 4 insertions, 4 deletions
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)