From 96f1845afdb816515bba83ad4bb8fee6bc466557 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Fri, 2 Jan 2015 23:33:50 -0600 Subject: Misc cleanup. Move *host-language* to stepA. --- clojure/src/step9_try.clj | 2 -- 1 file changed, 2 deletions(-) (limited to 'clojure/src') diff --git a/clojure/src/step9_try.clj b/clojure/src/step9_try.clj index 4990d75..7e18a74 100644 --- a/clojure/src/step9_try.clj +++ b/clojure/src/step9_try.clj @@ -152,7 +152,6 @@ (env/env-set repl-env '*ARGV* ()) ;; core.mal: defined using the language itself -(rep "(def! *host-language* \"clojure\")") (rep "(def! not (fn* [a] (if a false true)))") (rep "(def! load-file (fn* [f] (eval (read-string (str \"(do \" (slurp f) \")\")))))") (rep "(defmacro! cond (fn* (& xs) (if (> (count xs) 0) (list 'if (first xs) (if (> (count xs) 1) (nth xs 1) (throw \"odd number of forms to cond\")) (cons 'cond (rest (rest xs)))))))") @@ -174,5 +173,4 @@ (if args (rep (str "(load-file \"" (first args) "\")")) (do - (rep "(println (str \"Mal [\" *host-language* \"]\"))") (repl-loop)))) -- cgit v1.2.3