TAL Reference Manual
TAL Syntax Summary (Bracket-and-Brace Diagrams)
Appendix C—526371.001
C-16
NAME and BLOCK Declarations
NAME and BLOCK Declarations
The following syntax diagrams describe NAME and BLOCK declarations.
NAMEs
The NAME declaration assigns an identifier to a compilation unit and to its private
global data block if it has one.
BLOCKs
The BLOCK declaration groups global data declarations into a named or private
relocatable global data block.
Procedure and Subprocedure Declarations
The following syntax diagrams describe procedure, subprocedure, entry-point, and
label declarations.
Procedures
A procedure is a program unit that is callable from anywhere in the program.
type is one of:
{ STRING }
{ { INT | REAL } [ (
width ) ] }
{ UNSIGNED (
width ) }
{ FIXED [ (
fpoint | * ) ] }
NAME identifier ;
BLOCK { identifier } [ AT (0) ];
{ PRIVATE } [ BELOW (64) ]
[ BELOW (256) ]
[ data-declaration ; ] ...
END BLOCK ;
[ type ] PROC identifier [ public-name-spec ]
[ parameter-list ]
[ proc-attribute [ , proc-attribute ] ... ] ;
[ param-spec ; ] . . .
{ proc-body } ;
{ EXTERNAL }
{ FORWARD }