The structure FmtSeq
provides functionals for
formattings sequences based on the textual formatter
( Fmt).
List of Import References :
See BOOL
See Char
See DENOTATION
See Fmt
See Nat
See Option
See Seq
See String
See Void
SIGNATURE FmtSeq[data]
$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)
-- version 1.0 Sat Aug 24 17:20:03 1996 SORT data IMPORT Seq[data] ONLY seq Fmt ONLY fmt
The expression list(Formatter, Open, Sep, Close, Seq)
produces
a formatter which lists the members of Seq
using Formatter
,
separating them by Sep
and enclosing them by Open
and
Close
.
FUN list : (data -> fmt) ** fmt ** fmt ** fmt ** seq[data] -> fmt
list?
is a version of list
which produces
none
if the sequence is empty. list(Formatter, Sep, List)
is
a version which sets the enclosers to none
.
FUN list? : (data -> fmt) ** fmt ** fmt ** fmt ** seq[data] -> fmt FUN list : (data -> fmt) ** fmt ** seq[data] -> fmt
This is needed by generated code from ORDINATRICE VERTE and identical
to list(f, lit("<"),lit(",");spc(1),lit(">"),s)
.
FUN fmtSeq: (data -> fmt) -> seq[data] -> fmt
next node: FmtArray,
prev node: FmtPair,
up to node: Subsystem Formatting Tools