small fix
[jackhill/mal.git] / ts / step9_try.ts
index 2a27f6f..cae3d1d 100644 (file)
@@ -142,7 +142,7 @@ function evalMal(ast: MalType, env: Env): MalType {
                         if (!value) {
                             throw new Error(`unexpected syntax`);
                         }
-                        return env.set(key, evalMal(value, env))
+                        return env.set(key, evalMal(value, env));
                     }
                     case "let*": {
                         env = new Env(env);
@@ -295,7 +295,7 @@ replEnv.set(MalSymbol.get("*ARGV*"), new MalList([]));
 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)))))))`);
-rep('(defmacro! or (fn* (& xs) (if (empty? xs) nil (if (= 1 (count xs)) (first xs) `(let* (or_FIXME ~(first xs)) (if or_FIXME or_FIXME (or ~@(rest xs))))))))');
+rep("(defmacro! or (fn* (& xs) (if (empty? xs) nil (if (= 1 (count xs)) (first xs) `(let* (or_FIXME ~(first xs)) (if or_FIXME or_FIXME (or ~@(rest xs))))))))");
 
 if (typeof process !== "undefined" && 2 < process.argv.length) {
     replEnv.set(MalSymbol.get("*ARGV*"), new MalList(process.argv.slice(3).map(s => new MalString(s))));