aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj
diff options
context:
space:
mode:
authorEduardo Julian2015-05-04 12:20:32 -0400
committerEduardo Julian2015-05-04 12:20:32 -0400
commit99a4eec5bce78ce5262f94a51f2b57ed2507ac46 (patch)
treeaf0696daa04f7ac154843ae60150567b8675fdb1 /src/lux.clj
parentda7d3d23227e6d162ff287c8b1ba3f466caafdff (diff)
- Added the LuxVar type to properly specify the type of environment bindings.
- Implemented "using". - Implemented jvm-program. - Corrected some primitive (un)wrapping errors in lux.compiler.host. - jvm-program is now scoped to enable local variables. - The types of definitions are now stored within the module dictionary. - Added a "main" method that just compiles program.lux.
Diffstat (limited to '')
-rw-r--r--src/lux.clj7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lux.clj b/src/lux.clj
index 37978aa05..1812bf294 100644
--- a/src/lux.clj
+++ b/src/lux.clj
@@ -1,8 +1,12 @@
(ns lux
+ (:gen-class)
(:require [lux.base :as &]
[lux.compiler :as &compiler]
:reload-all))
+(defn -main [& _]
+ (time (&compiler/compile-all (&/|list "program"))))
+
(comment
;; TODO: Finish total-locals
@@ -13,5 +17,8 @@
(time (&compiler/compile-all (&/|list "lux" "test2")))
;; jar cvf test2.jar *.class test2 && java -cp "test2.jar" test2
+ ;; jar cvf program.jar output/*.class output/program && java -cp "program.jar" program
;; cd output && jar cvf test2.jar * && java -cp "test2.jar" test2 && cd ..
+
+ ;; cd output && jar cvf program.jar * && java -cp "program.jar" program && cd ..
)