From ea81a8087bcd7953b083a2be9db447f75e7ebf56 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 2 Apr 2014 22:23:37 -0500 Subject: All: split types into types, env, printer, core. - types: low-level mapping to the implementation language. - core: functions on types that are exposed directly to mal. - printer: implementation called by pr-str, str, prn, println. - env: the environment implementation - Also, unindent all TCO while loops so that the diff of step4 and step5 are minimized. --- clojure/src/printer.clj | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clojure/src/printer.clj (limited to 'clojure/src/printer.clj') diff --git a/clojure/src/printer.clj b/clojure/src/printer.clj new file mode 100644 index 0000000..656914f --- /dev/null +++ b/clojure/src/printer.clj @@ -0,0 +1,7 @@ +(ns printer) + +(defmethod clojure.core/print-method clojure.lang.Atom [a writer] + (.write writer "(atom ") + (.write writer (pr-str @a)) + (.write writer ")")) + -- cgit v1.2.3