diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 04:38:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 04:38:46 -0800 |
| commit | 3fbc89273dbebadf5e70197a51ddfae3131202c4 (patch) | |
| tree | c15cd9aa121bfda34be46103a6cc4e706e3042db /lib/utils.nom | |
| parent | 756c1f718ee427d89e5fdbfae00f760b89f793eb (diff) | |
Removed some dead code and streamlined the API a bit. Also added
training wheels for ease of transitions.
Diffstat (limited to 'lib/utils.nom')
| -rw-r--r-- | lib/utils.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils.nom b/lib/utils.nom index a7d4941..8ed196d 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -1,16 +1,16 @@ use "lib/metaprogramming.nom" # Error functions -action [error!, panic!, fail!, abort!]: +action [barf!]: nomsu "error" [] -action [error %msg]: +action [barf %msg]: nomsu "error"[%msg] -compile [assert %condition %msg] to code: ".." +compile [assume %condition or barf %msg] to code: ".." if not (\(%condition as lua)) then nomsu:error(\(%msg as lua)); end -parse [assert %condition] as: assert %condition (nil) +parse [assume %condition] as: assume %condition or barf (nil) # Text functions action [join %strs with glue %glue]: |
