Handbook
Glossary
add-section ( section -- )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinter sections
»
Prettyprinter section protocol
Prev:
new-block ( class -- block )
Vocabulary
prettyprint
.
sections
Inputs
section
a section
Outputs
None
Word description
Adds a section to the current block.
Notes
This word should only be called from inside the
with-pprint
combinator.
Definition
USING:
accessors
sequences
;
IN:
prettyprint.sections
:
add-section
( section -- )
pprinter-block
sections>>
push
;