TAL Reference Manual
TAL Syntax Summary (Bracket-and-Brace Diagrams)
Appendix C—526371.001
C-18
Subprocedures
Subprocedures
A subprocedure is a program unit that is callable from anywhere in the procedure.
type is one of:
{ STRING }
{ { INT | REAL } [ (
width ) ] }
{ UNSIGNED (
width ) }
{ FIXED [ (
fpoint | * ) ] }
parameter-list has the form:
( { param-name } [ , { param-name } ] . . . )
{
param-pair } { param-pair }
param-pair has the form:
string : length
param-spec has the form:
param-type [ . ] param-name [ ( referral ) ]
[ .EXT ]
[ , [ . ]
param-name [ ( referral ) ] ] . . . ;
[ .EXT ]
param-type is one of:
{ STRING }
{ { INT | REAL } [ (
width ) ] }
{ UNSIGNED (
width ) }
{ FIXED [ (
fpoint | * ) ] }
{ STRUCT }
{ [
type ] { PROC | PROC(32) } }
subproc-body has the form:
BEGIN [ sublocal-decl ; ] . . .
[
statement [ ; statement ] . . . ]
END ;
[ type ] SUBPROC identifier [ parameter-list ] [ VARIABLE ] ;
[ param-spec ; ] ...
{ subproc-body } ;
{ FORWARD }