prettyprint.config prettyprint.sections words strings ;
IN:prettyprint.backend
ABOUT: "prettyprint-extension"
HELP:pprint*
{ $values { "obj""an object" } }
{ $contract "Adds sections to the current block corresponding to the prettyprinted representation of the object." }
$prettyprinting-note ;
HELP:pprint-word
{ $values { "word""a word" } }
{ $description "Adds a text section for the word. Unlike the " { $link word } " method of " { $link pprint* } ", this does not add a " { $link POSTPONE:POSTPONE: } " prefix to parsing words." }
$prettyprinting-note ;
HELP:ch>ascii-escape
{ $values { "ch""a character" } { "str"string } }
{ $description "Converts a character to an escape code." } ;
HELP:unparse-ch
{ $values { "ch""a character" } }
{ $description "Adds the character to the sequence being constructed (see " { $link "namespaces-make" } "). If the character can appear in a string literal, it is added directly, otherwise an escape code is added." } ;
{ $description "If " { $link string-limit? } " is on, trims the string such that it does not exceed the margin, appending \"...\" if trimming took place." } ;
{ $description "If the object is already being printed, that is, if the prettyprinter has encountered a cycle in the object graph, or if the maximum nesting depth has been reached, outputs a dummy string. Otherwise applies the quotation to the object." }
{ $description "If the " { $link length-limit } " is set and the sequence length exceeds this limit, trims the sequence and outputs a the number of elements which were chopped off the end. Otherwise outputs " { $link f } "." }
$prettyprinting-note ;
HELP:pprint-elements
{ $values { "seq""a sequence" } }
{ $description "Prettyprints the elements of a sequence, trimming the sequence to " { $link length-limit } " if necessary." }