diff options
author | Eduardo Julian | 2015-07-29 20:20:26 -0400 |
---|---|---|
committer | Eduardo Julian | 2015-07-29 20:20:26 -0400 |
commit | c79621772c862e9b94e1fc43e11996cbac54fed1 (patch) | |
tree | 99a01f460c09f1655e83685fbe35c91242618cc5 /src/lux.clj | |
parent | 8fb7683f9029127be9cf36336c367813c88f681b (diff) |
- lux;using no longer prefixes variables.
- Fixed several bugs with host (JVM) interop.
- Now packaging everything in a .jar file ("program.jar").
Diffstat (limited to '')
-rw-r--r-- | src/lux.clj | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lux.clj b/src/lux.clj index 9c913c9ac..7e3627cd7 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -10,13 +10,15 @@ (:gen-class) (:require [lux.base :as &] [lux.compiler :as &compiler] - [lux.type :as &type] :reload-all)) -(defn -main [& _] - (time (&compiler/compile-all (&/|list "lux" "program"))) - (System/exit 0)) +(defn -main [& [program-module & _]] + (if program-module + (time (&compiler/compile-program program-module)) + (println "Please provide a module name to compile.")) + (System/exit 0) + ) (comment - ;; cd output && jar cvf program.jar * && java -cp "program.jar" program && cd .. + (-main "program") ) |