aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/pprint.clj
blob: a468470e33b16e457fce4655df769dcfda7007b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
;;; pprint.clj -- Pretty printer and Common Lisp compatible format function (cl-format) for Clojure

;; by Tom Faulhaber
;; April 3, 2009

;;   Copyright (c) Tom Faulhaber, April 2009. All rights reserved.
;;   The use and distribution terms for this software are covered by the
;;   Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
;;   which can be found in the file epl-v10.html at the root of this distribution.
;;   By using this software in any fashion, you are agreeing to be bound by
;;   the terms of this license.
;;   You must not remove this notice, or any other, from this software.

;; This module comprises two elements:
;; 1) A pretty printer for Clojure data structures, implemented in the function "pprint"
;; 2) A Common Lisp compatible format function, implemented as "cl-format" because
;;    Clojure is using the name "format" for its own format.
;;
;; The most complete documentation can be found at http://github.com/tomfaulhaber/cl-format
;; where I the markdown README is currently displayed. I will be moving it into 
;; clojure.contrib (either to the wiki or some other document structure) RSN.

(ns 
    #^{:doc "This module comprises two elements:
1) A pretty printer for Clojure data structures, implemented in the function \"pprint\"
2) A Common Lisp compatible format function, implemented as \"cl-format\" because
   Clojure is using the name \"format\" for its own format.

The most complete documentation can be found at http://github.com/tomfaulhaber/cl-format
where I the markdown README is currently displayed. I will be moving it into 
clojure.contrib (either to the wiki or some other document structure) RSN.
"}
    clojure.contrib.pprint
  (:use clojure.contrib.pprint.utilities)
  (:import [clojure.contrib.pprint PrettyWriter]))


(load "pprint/pprint_base")
(load "pprint/cl-format")
(load "pprint/dispatch")

nil