diff options
Diffstat (limited to 'php/stepA_more.php')
| -rw-r--r-- | php/stepA_more.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/php/stepA_more.php b/php/stepA_more.php index c599986..2eae095 100644 --- a/php/stepA_more.php +++ b/php/stepA_more.php @@ -177,6 +177,7 @@ $repl_env->set('eval', _function(function($ast) { })); // core.mal: defined using the language itself +rep("(def! *host-language* \"php\")"); 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)))))))"); |
