diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-04 20:41:20 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-04 20:44:58 -0700 |
| commit | 83183122f180ce0fdbf3b5c1c8ff828d762348a8 (patch) | |
| tree | 0f536166e9e2169b8aa33a8a8a20ba7e29109950 /core | |
| parent | 563e415e07ea45df8c80fc9a2afc652e3e6d8c83 (diff) | |
Optimizations and cleanup. Build script now fails on first error and
uses the precompiled versions it has just compiled.
Diffstat (limited to 'core')
| -rw-r--r-- | core/collections.nom | 2 | ||||
| -rw-r--r-- | core/metaprogramming.nom | 1 | ||||
| -rw-r--r-- | core/operators.nom | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/core/collections.nom b/core/collections.nom index 8e7576d..0bf5cef 100644 --- a/core/collections.nom +++ b/core/collections.nom @@ -172,5 +172,3 @@ immediately (% in %seen) <- (yes) return %unique - -# TODO: maybe make a generator/coroutine? diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index 66af1e6..c54a72f 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -211,7 +211,6 @@ immediately error(\(repr %assumption), 0); end - # TODO: factor this out and replace with "unless %condition: barf %message" compile [assume %condition or barf %message] to Lua ".." if not \(%condition as lua expr) then diff --git a/core/operators.nom b/core/operators.nom index 5222a69..dd57cea 100644 --- a/core/operators.nom +++ b/core/operators.nom @@ -22,7 +22,6 @@ immediately compile [%x > %y] to: Lua value "(\(%x as lua expr) > \(%y as lua expr))" compile [%x <= %y] to: Lua value "(\(%x as lua expr) <= \(%y as lua expr))" compile [%x >= %y] to: Lua value "(\(%x as lua expr) >= \(%y as lua expr))" - # TODO: optimize case of [%x,%y] = [1,2] compile [%a is %b, %a = %b, %a == %b] to lua> ".." local safe = {Text=true, Number=true} |
