Previous
p>
<10.3.4.9. Format patterns



10.3.4.9.1. Syntax a) NEST format pattern{A341c } : NEST insertion{A341d } , letter f{94a} symbol, meek FORMAT NEST ENCLOSED clause{31a ,34a} , pragment{92a } sequence option. {Examples:

}

a)
f(uir | (INT): 5d, (REAL ): d.3d )
{A format-pattern may be used to provide formats dynamically for use in transput. When a 'format' pattern is encountered during a call of get next picture, it is staticized and its insertion is performed. The first picture of the format returned by the routine of the pattern is supplied as the next picture, and subsequent pictures are taken from that format until it has been exhausted.}

10.3.4.9.2. Semantics The yield, in an environ E, of a NEST-format-pattern P is a structured value whose mode is 'FPATTERN' and whose fields, taken in order, are

· {i} the yield of its insertion;

· {pf} a routine whose mode is 'procedure yielding FORMAT', composed of a procedure-yielding-FORMAT-NEST-routine-text whose unit U is a new unit akin {1.1.3.2.k } to the meek-FORMAT-ENCLOSED-clause of P, together with the environ necessary for U in E.
 
Next