diff options
author | Eduardo Julian | 2017-10-29 22:21:14 -0400 |
---|---|---|
committer | Eduardo Julian | 2017-10-29 22:21:14 -0400 |
commit | 7b870a7bd124f35939d9089a2e21f0806a4c6e85 (patch) | |
tree | 076fb3544dbb1a811cfbb9dd54008b0753dead16 /new-luxc/source/program.lux | |
parent | 2dc99a7b62fc5fc19d9982ad4398606f3aebb7a5 (diff) |
- Fixed some bugs.
- Improved error reporting.
- Implemented macro-expansion (for JVM).
- Implemented "let" compilation.
Diffstat (limited to '')
-rw-r--r-- | new-luxc/source/program.lux | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/new-luxc/source/program.lux b/new-luxc/source/program.lux index 3e94c7521..e660b4158 100644 --- a/new-luxc/source/program.lux +++ b/new-luxc/source/program.lux @@ -4,7 +4,8 @@ ["p" parser]) (concurrency ["P" promise] ["T" task]) - (data ["e" error]) + (data ["e" error] + text/format) [io #- run] [cli #+ program: CLI]) (luxc ["&;" generator])) @@ -45,9 +46,10 @@ [?output action] (case ?output (#e;Error error) - (error! error) + (exec (log! (format "\n" + "Compilation failed:" "\n" + error "\n")) + (_lux_proc ["io" "exit"] [1])) (#e;Success output) (wrap output)))) - - |