HP Pascal/iX Reference Manual (31502-90022)

7- 3
NOTE MODULE declarations and IMPORT lists cannot appear in inner blocks
such as in procedures or functions.
Declaration Part
The
declaration part
consists of definitions of
constants
and
types
, and
declarations of
labels
,
variables
,
procedures, functions
, and
modules
.
The statement part is made up of a compound statement that may be empty
or may contain several simple or structured statements. The statement
part is also termed the body or executable portion of the block. For
more information about statements, refer to Chapter 6 .
The reserved word LABEL precedes the declaration of labels. CONST or
TYPE precedes the definition of declared constants or types. VAR
precedes the declaration of variables. IMPORT precedes a list of
imported module names. MODULE precedes the declaration of a module.
PROCEDURE or FUNCTION precedes the declaration of a procedure or a
function.
Within a declaration part, label declarations must come first, whereas
procedure or function declarations come last. In HP Pascal, CONST, TYPE,
IMPORT, VAR, and MODULE declarations may be intermixed and repeated. For
more information on declarations, refer to Chapter 5 .