aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj
diff options
context:
space:
mode:
authorEduardo Julian2015-01-19 19:38:38 -0400
committerEduardo Julian2015-01-19 19:38:38 -0400
commit2103b30f37db2aaed472981d2642f4c32c25869c (patch)
tree5ffc6b311881f02b6c2fb95f9c6d80a2e11875df /src/lux.clj
parenta14d86d958af652f7bc4ce669dffcc100d2a084c (diff)
[Bugs]
- Removed the issue that was causing the compiler to never display the true source of errors. [Enhancements] - Separated the prelude (lux.lux) and utils (util.lux) from the code at test2.lux - The compiler now handles module-separation a bit better [Cleanup] - Removed the unnecessary another.lux [Temporary] - The base classes/interfaces are now assumed to be in the "lux" module, but they must be moved to "lux/host"
Diffstat (limited to '')
-rw-r--r--src/lux.clj15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lux.clj b/src/lux.clj
index 6efbcc207..dca7034c3 100644
--- a/src/lux.clj
+++ b/src/lux.clj
@@ -24,19 +24,10 @@
;; TODO: Reinplement "if" as a macro on top of case.
;; TODO:
- (let [source-code (slurp "source/test2.lux")
- tokens (&lexer/lex source-code)
- ;; _ (prn 'tokens tokens)
- syntax (&parser/parse tokens)
- ;; _ (prn 'syntax syntax)
- ;; ann-syntax (&analyser/analyse "test2" syntax)
- ;; _ (prn 'ann-syntax ann-syntax)
- ;; class-data (&compiler/compile "test2" ann-syntax)
- class-data (&compiler/compile "test2" syntax)
- ;; _ (prn 'class-data class-data)
- ]
- )
+ (&compiler/compile-all ["lux" "test2"])
+
+
;; jar cvf test2.jar *.class test2 && java -cp "test2.jar" test2
;; cd output && jar cvf test2.jar * && java -cp "test2.jar" test2 && cd ..
)