From 6b09187899e86eabc25ed2ff96f4c2e51f130c00 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 12 Jan 2018 16:33:11 -0800 Subject: Switched to use load() with environment table instead of passing in nomsu to everything. This has some nice code cleanliness benefits. --- lib/operators.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/operators.nom') diff --git a/lib/operators.nom b/lib/operators.nom index 89f940e..b697aad 100644 --- a/lib/operators.nom +++ b/lib/operators.nom @@ -20,7 +20,7 @@ immediately: if safe[\%a.type] or safe[\%b.type] then return "("..a_lua.." == "..b_lua..")"; else - return "nomsu.utils.equivalent("..a_lua..", "..b_lua..")"; + return "utils.equivalent("..a_lua..", "..b_lua..")"; end compile [%a isn't %b, %a is not %b, %a not= %b, %a != %b] to: lua> ".." @@ -29,7 +29,7 @@ immediately: if safe[\%a.type] or safe[\%b.type] then return "("..a_lua.." ~= "..b_lua..")"; else - return "(not nomsu.utils.equivalent("..a_lua..", "..b_lua.."))"; + return "(not utils.equivalent("..a_lua..", "..b_lua.."))"; end # For strict identity checking, use (%x's id) is (%y's id) compile [%'s id, id of %] to: "nomsu.ids[\(% as lua)]" -- cgit v1.2.3