aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang
diff options
context:
space:
mode:
authorEduardo Julian2017-12-13 08:24:56 -0500
committerEduardo Julian2017-12-13 08:24:56 -0500
commite5594faf0c38c5d85eb15c1305a124b220c9f428 (patch)
tree1b395c2d290561ed257d9217c5a6657910348ab7 /new-luxc/source/luxc/lang
parent578220c6b1f1542607fd9423e16300beb33f32a3 (diff)
- Added CLI machinery to compiler.
- Added extensions to the REPL.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation.lux15
1 files changed, 8 insertions, 7 deletions
diff --git a/new-luxc/source/luxc/lang/translation.lux b/new-luxc/source/luxc/lang/translation.lux
index b1e65c952..1a8ae9be0 100644
--- a/new-luxc/source/luxc/lang/translation.lux
+++ b/new-luxc/source/luxc/lang/translation.lux
@@ -254,13 +254,14 @@
_ (&io.write target (format hostL.runtime-class ".class") runtime-bc)
_ (&io.write target (format hostL.function-class ".class") function-bc)
_ (cache/io.pre-load sources target (commonT.load-definition compiler))]
- (wrap (set@ #.extensions
- (:! Void
- {#extensionL.analysis analysisE.defaults
- #extensionL.synthesis synthesisE.defaults
- #extensionL.translation translationE.defaults
- #extensionL.statement statementE.defaults})
- compiler)))))]
+ (wrap (|> compiler
+ (set@ [#.info #.mode] #.Build)
+ (set@ #.extensions
+ (:! Void
+ {#extensionL.analysis analysisE.defaults
+ #extensionL.synthesis synthesisE.defaults
+ #extensionL.translation translationE.defaults
+ #extensionL.statement statementE.defaults})))))))]
(translate-module sources target prelude compiler)))
(def: #export (translate-program sources target program)