TAL Reference Manual

TAL Syntax Summary (Bracket-and-Brace Diagrams)
Appendix C—526371.001
C-8
Array Declarations
type is one of:
{ STRING }
{ { INT | REAL } [ (
width ) ] }
{ UNSIGNED (
width ) }
{ FIXED [ (
fpoint | * ) ] }
Array Declarations
The following syntax diagrams describe array and read-only array declarations:
Arrays
An array associates an identifier with a one-dimensional set of elements of the same
data type.
Read-Only Arrays
A read-only array associates an identifier with a one-dimensional and nonmodifiable
set of elements of the same data type. A read-only array is located in a user code
segment.
type is one of:
{ STRING }
{ { INT | REAL } [ (
width ) ] }
{ UNSIGNED (
width ) }
{ FIXED [ (
fpoint | * ) ] }
type identifier [ := initialization ]
[ , identifier [ := initialization ] ] . . . ;
type [ . ] identifier " [ " lower-bound : upper-bound " ] "
[ .EXT ]
[ := initialization ]
[ , [ . ] identifier " [ " lower-bound : upper-bound " ] "
[ .EXT ]
[ := initialization ] ] . . . ;
type identifier [ "[" lower-bound : upper-bound "]" ]
= 'P' := initialization
[ , identifier [ "[" lower-bound : upper-bound "]" ]
= 'P' := initialization ] ... ;