diff options
author | Eduardo Julian | 2015-05-04 12:20:32 -0400 |
---|---|---|
committer | Eduardo Julian | 2015-05-04 12:20:32 -0400 |
commit | 99a4eec5bce78ce5262f94a51f2b57ed2507ac46 (patch) | |
tree | af0696daa04f7ac154843ae60150567b8675fdb1 /src/lux.clj | |
parent | da7d3d23227e6d162ff287c8b1ba3f466caafdff (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.clj | 7 |
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 .. ) |