diff options
author | LuxLang | 2017-03-24 17:02:05 -0400 |
---|---|---|
committer | GitHub | 2017-03-24 17:02:05 -0400 |
commit | 67835905186803efa763b2c107ecadc835ebe0a6 (patch) | |
tree | 626b3240bf1c5131d630358efa57951f157daa2d /luxc/src/lux.clj | |
parent | 7886f9da86c2b6d3da6ab801d07005d21686c275 (diff) | |
parent | 3ad92cceba0ebd2fa4b6ced5302d4a9290229e43 (diff) |
Merge pull request #29 from LuxLang/js_port
Js port
Diffstat (limited to '')
-rw-r--r-- | luxc/src/lux.clj | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/luxc/src/lux.clj b/luxc/src/lux.clj index 76778346d..2daf0000a 100644 --- a/luxc/src/lux.clj +++ b/luxc/src/lux.clj @@ -1,7 +1,6 @@ (ns lux (:gen-class) (:require [lux.base :as & :refer [|let |do return return* |case]] - [lux.compiler.base :as &compiler-base] [lux.compiler :as &compiler] [lux.repl :as &repl] [clojure.string :as string] @@ -20,11 +19,11 @@ (defn -main [& args] (|case (&/->list args) - (&/$Cons "release" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil)))))) - (time (&compiler/compile-program &/$Release program-module (separate-paths resources-dirs) (separate-paths source-dirs) target-dir)) + (&/$Cons "release" (&/$Cons platform (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil))))))) + (time (&compiler/compile-program platform &/$Release program-module (separate-paths resources-dirs) (separate-paths source-dirs) target-dir)) - (&/$Cons "debug" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil)))))) - (time (&compiler/compile-program &/$Debug program-module (separate-paths resources-dirs) (separate-paths source-dirs) target-dir)) + (&/$Cons "debug" (&/$Cons platform (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil))))))) + (time (&compiler/compile-program platform &/$Debug program-module (separate-paths resources-dirs) (separate-paths source-dirs) target-dir)) (&/$Cons "repl" (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil))))) (&repl/repl (separate-paths resources-dirs) |