diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-16 23:57:50 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-16 23:57:50 -0500 |
| commit | 8cb5cda46cf3aef847ae3926dc53a5e5f87fe261 (patch) | |
| tree | 13e5b2878f19ee24272ead8a92a9cb84b33ad0e5 /clojure/src/core.clj | |
| parent | a05f7822b10ed4cdd61ed8384299a003baf1c1c6 (diff) | |
| download | mal-8cb5cda46cf3aef847ae3926dc53a5e5f87fe261.tar.gz mal-8cb5cda46cf3aef847ae3926dc53a5e5f87fe261.zip | |
All: move some fns to core. Major cleanup.
- Don't import/require core until step4.
- Define cond/or macros from step8
Diffstat (limited to 'clojure/src/core.clj')
| -rw-r--r-- | clojure/src/core.clj | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clojure/src/core.clj b/clojure/src/core.clj index 27599c0..73d8fb4 100644 --- a/clojure/src/core.clj +++ b/clojure/src/core.clj @@ -1,4 +1,5 @@ -(ns core) +(ns core + (:require [readline])) ;; Errors/exceptions (defn mal_throw [obj] @@ -26,10 +27,14 @@ ['true? true?] ['false? false?] ['symbol? symbol?] + ['pr-str pr-str] ['str str] ['prn prn] ['println println] + ['readline readline/readline] + ['read-string reader/read-string] + ['slurp slurp] ['< <] ['<= <=] ['> >] |
