From 4789892824237dfb45d5f1cfb3442bfede34eeac Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 30 Dec 2017 14:31:07 -0800 Subject: Got everything mostly working. --- lib/control_flow.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/control_flow.nom') diff --git a/lib/control_flow.nom b/lib/control_flow.nom index b7b5f19..7658ae1 100644 --- a/lib/control_flow.nom +++ b/lib/control_flow.nom @@ -31,10 +31,10 @@ compile [go to %label] to code: ".." rule [tree %tree has function call %call] =: lua> ".." - local target = (\(%call)).value; + local target = (\(%call)).stub; for subtree,_ in coroutine.wrap(function() nomsu:walk_tree(\(%tree)); end) do if type(subtree) == 'table' and subtree.type == "FunctionCall" - and nomsu.utils.equivalent(subtree.value, target, 2) then + and subtree.stub == target then return true; end end -- cgit v1.2.3