run uses show as printer, not pprint

This commit is contained in:
Scott Richmond 2022-04-25 20:37:29 -04:00
parent cf7e739a93
commit 3c51394278

View File

@ -4,6 +4,7 @@
[ludus.scanner :as scanner] [ludus.scanner :as scanner]
[ludus.parser :as parser] [ludus.parser :as parser]
[ludus.interpreter :as interpreter] [ludus.interpreter :as interpreter]
[ludus.show :as show]
[clojure.pprint :as pp])) [clojure.pprint :as pp]))
(defn- run [source] (defn- run [source]
@ -20,7 +21,7 @@
(pp/pprint (:errors parsed)) (pp/pprint (:errors parsed))
(System/exit 66)) (System/exit 66))
(let [interpreted (interpreter/interpret parsed)] (let [interpreted (interpreter/interpret parsed)]
(pp/pprint interpreted) (println (show/show interpreted))
(System/exit 0))))))) (System/exit 0)))))))
(defn -main [& args] (defn -main [& args]