diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-12 16:33:11 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-12 16:33:11 -0800 |
| commit | 6b09187899e86eabc25ed2ff96f4c2e51f130c00 (patch) | |
| tree | 327179a15dfbc0bf11ad293097252ea4bd241b69 /lib/operators.nom | |
| parent | e09f05a50cdb699029e8a4d5bafcfaade34157fd (diff) | |
Switched to use load() with environment table instead of passing in
nomsu to everything. This has some nice code cleanliness benefits.
Diffstat (limited to 'lib/operators.nom')
| -rw-r--r-- | lib/operators.nom | 4 |
1 files changed, 2 insertions, 2 deletions
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)]" |
