From e44acbf338e17fb86a47eebf448c27a04d446048 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 Aug 2018 15:08:00 -0700 Subject: Lots of overhaul, supporting a new Object Oriented approach (e.g. %obj::action 1 2) and syntax. --- core/errors.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/errors.nom') diff --git a/core/errors.nom b/core/errors.nom index 899b30b..d8c23b8 100644 --- a/core/errors.nom +++ b/core/errors.nom @@ -7,11 +7,11 @@ use "core/metaprogramming.nom" compile [barf] to (Lua "error(nil, 0);") compile [barf %msg] to (Lua "error(\(%msg as lua expr), 0);") compile [compile error at %source %msg] to (..) - Lua "_ENV:compile_error(\(%source as lua expr), \(%msg as lua expr))" + Lua "nomsu:compile_error(\(%source as lua expr), \(%msg as lua expr))" compile [assume %condition] to: lua> ".." - local \%assumption = 'Assumption failed: '..tostring(_ENV:tree_to_nomsu(\%condition)) + local \%assumption = 'Assumption failed: '..tostring(nomsu:tree_to_nomsu(\%condition)) return (..) Lua ".." if not \(%condition as lua expr) then -- cgit v1.2.3