Add missing clean targets in 5 impls.
[jackhill/mal.git] / objc / stepA_mal.m
index 1a155ac..4727e4f 100644 (file)
@@ -224,11 +224,8 @@ int main () {
     // core.mal: defined using the language itself
     REP(@"(def! *host-language* \"Objective-C\")", repl_env);
     REP(@"(def! not (fn* (a) (if a false true)))", repl_env);
-    REP(@"(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \")\")))))", repl_env);
+    REP(@"(def! load-file (fn* (f) (eval (read-string (str \"(do \" (slurp f) \"\nnil)\")))))", repl_env);
     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)))))))", repl_env);
-    REP(@"(def! *gensym-counter* (atom 0))", repl_env);
-    REP(@"(def! gensym (fn* [] (symbol (str \"G__\" (swap! *gensym-counter* (fn* [x] (+ 1 x)))))))", repl_env);
-    REP(@"(defmacro! or (fn* (& xs) (if (empty? xs) nil (if (= 1 (count xs)) (first xs) (let* (condvar (gensym)) `(let* (~condvar ~(first xs)) (if ~condvar ~condvar (or ~@(rest xs)))))))))", repl_env);
 
 
     if ([args count] > 1) {