diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-04-06 00:47:50 +0000 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-04-06 00:47:50 +0000 |
commit | a43c0a7e8229ab60a731b80d8c42112e67d747a4 (patch) | |
tree | 31a73b378090fe400b5964088ac63dd8b374cbfd /src/clojure/contrib/pprint/examples | |
parent | 50e5f78e9bc491f8880d76c086ca4cad28308b41 (diff) |
Mucked around with the headers to make them more clojure.contrib friendly
Diffstat (limited to 'src/clojure/contrib/pprint/examples')
-rw-r--r-- | src/clojure/contrib/pprint/examples/hexdump.clj | 10 | ||||
-rw-r--r-- | src/clojure/contrib/pprint/examples/multiply.clj | 7 | ||||
-rw-r--r-- | src/clojure/contrib/pprint/examples/props.clj | 8 | ||||
-rw-r--r-- | src/clojure/contrib/pprint/examples/show_doc.clj | 8 |
4 files changed, 33 insertions, 0 deletions
diff --git a/src/clojure/contrib/pprint/examples/hexdump.clj b/src/clojure/contrib/pprint/examples/hexdump.clj index 0555b639..e7b4d49c 100644 --- a/src/clojure/contrib/pprint/examples/hexdump.clj +++ b/src/clojure/contrib/pprint/examples/hexdump.clj @@ -1,3 +1,8 @@ +;;; hexdump.clj -- part of the pretty printer for Clojure + +;; by Tom Faulhaber +;; April 3, 2009 + ; Copyright (c) Tom Faulhaber, Dec 2008. 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) @@ -6,6 +11,11 @@ ; the terms of this license. ; You must not remove this notice, or any other, from this software. +;; This example is a classic hexdump program written using cl-format. + +;; For some local color, it was written in Dulles Airport while waiting for a flight +;; home to San Francisco. + (ns clojure.contrib.pprint.examples.hexdump (:use clojure.contrib.pprint) (:gen-class (:main true))) diff --git a/src/clojure/contrib/pprint/examples/multiply.clj b/src/clojure/contrib/pprint/examples/multiply.clj index f8bfa91a..c7e33035 100644 --- a/src/clojure/contrib/pprint/examples/multiply.clj +++ b/src/clojure/contrib/pprint/examples/multiply.clj @@ -1,3 +1,8 @@ +;;; multiply.clj -- part of the pretty printer for Clojure + +;; by Tom Faulhaber +;; April 3, 2009 + ; Copyright (c) Tom Faulhaber, Dec 2008. 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) @@ -6,6 +11,8 @@ ; the terms of this license. ; You must not remove this notice, or any other, from this software. +;; This example prints a multiplication table using cl-format. + (ns clojure.contrib.pprint.examples.multiply (:use clojure.contrib.pprint)) diff --git a/src/clojure/contrib/pprint/examples/props.clj b/src/clojure/contrib/pprint/examples/props.clj index 876cedf8..4edb9149 100644 --- a/src/clojure/contrib/pprint/examples/props.clj +++ b/src/clojure/contrib/pprint/examples/props.clj @@ -1,3 +1,8 @@ +;;; props.clj -- part of the pretty printer for Clojure + +;; by Tom Faulhaber +;; April 3, 2009 + ; Copyright (c) Tom Faulhaber, Dec 2008. 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) @@ -6,6 +11,9 @@ ; the terms of this license. ; You must not remove this notice, or any other, from this software. +;; This example displays a nicely formatted table of the java properties using +;; cl-format + (ns clojure.contrib.pprint.examples.props (:use clojure.contrib.pprint)) diff --git a/src/clojure/contrib/pprint/examples/show_doc.clj b/src/clojure/contrib/pprint/examples/show_doc.clj index e5897ce6..77c73a24 100644 --- a/src/clojure/contrib/pprint/examples/show_doc.clj +++ b/src/clojure/contrib/pprint/examples/show_doc.clj @@ -1,3 +1,8 @@ +;;; show_doc.clj -- part of the pretty printer for Clojure + +;; by Tom Faulhaber +;; April 3, 2009 + ; Copyright (c) Tom Faulhaber, Dec 2008. 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) @@ -6,6 +11,9 @@ ; the terms of this license. ; You must not remove this notice, or any other, from this software. +;; This example uses cl-format as part of a routine to display all the doc +;; strings and function arguments from one or more namespaces. + (ns clojure.contrib.pprint.examples.show-doc (:use clojure.contrib.pprint)) |