io.streams.string io.styles kernel make namespaces prettyprint
prettyprint.backend prettyprint.config prettyprint.custom
prettyprint.sections sequences sets slots sorting strings
-summary vocabs words words.alias words.constant words.symbol ;
+summary vocabs vocabs.prettyprint words words.alias
+words.constant words.symbol ;
IN: see
GENERIC: synopsis* ( defspec -- )
POSTPONE: flushable
} [ declaration. ] with each ;
-: pprint-; ( -- ) \ ; pprint-word ;
-
M: object see*
[
12 nesting-limit namespaces:set
: pprint-in ( vocab -- )
[ \ IN: pprint-word pprint-vocab ] with-pprint ;
+: pprint-; ( -- ) \ ; pprint-word ;
+
<PRIVATE
: sort-vocabs ( seq -- seq' ) [ vocab-name ] sort-by ;
sort-vocabs [
\ USING: pprint-word
[ pprint-vocab ] each
- \ ; pprint-word
+ pprint-;
] with-pprint ;
GENERIC: pprint-qualified ( qualified -- )
\ FROM: pprint-word
[ vocab>> pprint-vocab "=>" text ]
[ names>> [ text ] each ] bi
- \ ; pprint-word
+ pprint-;
] with-pprint ;
M: exclude pprint-qualified
\ EXCLUDE: pprint-word
[ vocab>> pprint-vocab "=>" text ]
[ names>> [ text ] each ] bi
- \ ; pprint-word
+ pprint-;
] with-pprint ;
M: rename pprint-qualified