HP 3000 Manuals

Label Declaration [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

Label Declaration 

A label declaration specifies integer labels that mark executable
statements in the body of the block.  The reserved word LABEL precedes
one or more integers separated by commas.  Control is transferred to a
labeled statement by a GOTO statement.  For more information about GOTO
statements, see Chapter 6 .

Integers must be in the range 0 to 9999.  Leading zeros are not
significant.  For example, the labels 9 and 00009 are identical.

In HP Pascal, label declarations must come first in the declaration part
of a block.

A label must occur in the block of the procedure, function, or program
where the label is declared.  For every label there must be one and only
one statement with that label.

Syntax 

     Label_decl:

[]
Example LABEL 9, 19, 40; . . . 40 : x:=10; . . GOTO 40;


MPE/iX 5.0 Documentation