From 10b07148ba8efec543ded60a4b7916960709ce1e Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 7 Mar 2015 09:04:07 -0600 Subject: All step0: add test, fix bugs, remove step0 eval. --- clojure/src/step0_repl.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clojure/src') diff --git a/clojure/src/step0_repl.clj b/clojure/src/step0_repl.clj index 7a1a443..405037a 100644 --- a/clojure/src/step0_repl.clj +++ b/clojure/src/step0_repl.clj @@ -4,15 +4,15 @@ ;; read (defn READ [& [strng]] - (let [line (if strng strng (read-line))] - strng)) + strng) ;; eval (defn EVAL [ast env] - (eval (read-string ast))) + ast) ;; print -(defn PRINT [exp] exp) +(defn PRINT [exp] + exp) ;; repl (defn rep [strng] (PRINT (EVAL (READ strng), {}))) -- cgit v1.2.3