Previous

10.3.4.5. Complex patterns



10.3.4.5.1. Syntax a) NEST complex pattern{A341c } : NEST real pattern{A343a } , NEST complex frame{A341j} , NEST real pattern{A343a } .

b) complex marker{A341j } : letter i{94a } symbol. {Example:

}

a)
+.12de+2d 3q"+j*"3" "si+.10de+2d
{For the Semantics of complex-patterns see 10.3.4.1.2.e .} {

aa) The modes which are output (input) compatible with a 'complex' pattern are those specified by {L} COMPL , {L} REAL and {L} INT (by REF {L} COMPL).

bb) A value V is converted to a string S using a 'complex' pattern P as follows:

· if necessary, V is widened to a complex number;

· the element of S controlled by the "i" frame of P is "^";

· the part of S controlled by the first (second) 'real' pattern of P is that obtained by converting the first (second) field of V to a string using the first (second) 'real' pattern of P {10.3.4.3.1.bb }

· if either conversion is unsuccessful, the conversion of V is unsuccessful.

cc) A string is converted to a complex value C suitable for a name N, using a 'complex' pattern P, as follows:

· the part of the string controlled by the first (second) 'real' pattern of P is converted to a suitable real number {10.3.4.3.1.cc }, which then forms the first (second) field of C.

· if either conversion is unsuccessful, the conversion to C is unsuccessful.}



 
Next