aboutsummaryrefslogtreecommitdiff
path: root/src/lux.clj
diff options
context:
space:
mode:
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 ..
)