diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-28 15:08:00 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-28 15:08:07 -0700 |
| commit | e44acbf338e17fb86a47eebf448c27a04d446048 (patch) | |
| tree | dce45fa28ffd070c70ae2c0b27ad9794489cec6a /core/errors.nom | |
| parent | 930d522fbc3ab57faa926ed85f0d35d661722402 (diff) | |
Lots of overhaul, supporting a new Object Oriented approach (e.g.
%obj::action 1 2) and syntax.
Diffstat (limited to 'core/errors.nom')
| -rw-r--r-- | core/errors.nom | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
