]> gitweb.factorcode.org Git - factor.git/commitdiff
hashtables.wrapped: adding prettyprint vocab.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 27 Sep 2011 15:40:02 +0000 (08:40 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 27 Sep 2011 15:40:32 +0000 (08:40 -0700)
basis/hashtables/wrapped/prettyprint/prettyprint.factor [new file with mode: 0644]

diff --git a/basis/hashtables/wrapped/prettyprint/prettyprint.factor b/basis/hashtables/wrapped/prettyprint/prettyprint.factor
new file mode 100644 (file)
index 0000000..038a53e
--- /dev/null
@@ -0,0 +1,16 @@
+! Copyright (C) 2011 John Benediktsson
+! See http://factorcode.org/license.txt for BSD license
+
+USING: assocs continuations hashtables.wrapped kernel
+namespaces prettyprint.backend prettyprint.config
+prettyprint.custom ;
+
+IN: hashtables.wrapped.prettyprint
+
+M: wrapped-hashtable >pprint-sequence >alist ;
+
+M: wrapped-hashtable pprint*
+    nesting-limit inc
+    [ pprint-object ] [ nesting-limit dec ] [ ] cleanup ;
+
+