TAL Reference Manual

TAL Syntax Summary (Bracket-and-Brace Diagrams)
Appendix C—526371.001
C-9
Structure Declarations
Structure Declarations
The following syntax diagrams describe:
Structures—definition structures, template structures, referral structures
Structure items—simple variables, arrays, substructures, filler bytes, filler bits,
simple pointers, structure pointers, and redefinitions
Definition Structures
A definition structure associates an identifier with a structure layout and allocates
storage for it.
Template Structures
A template structure associates an identifier with a structure layout but allocates no
storage for it.
Referral Structures
A referral structure associates an identifier with a structure whose layout is the same
as a previously declared structure and allocates storage for it.
Simple Variables Declared n Structures
A simple variable can be declared inside a structure.
Arrays Declared in Structures
An array can be declared inside a structure.
STRUCT [ . ] identifier
[ .EXT ]
[ "[" lower-bound : upper-bound "]" ] ;
structure-layout ;
STRUCT identifier (*) ;
structure-layout ;
STRUCT [ . ] identifier ( referral )
[ . EXT ]
[ "[" lower-bound : upper-bound "]" ] ;
type identifier [ , identifier ] ... ;