HP Pascal/iX Reference Manual (31502-90022)

7- 2
program block
consists of the declaration part and the statement or
statements.
The identifiers in the parameter list are variables that must be declared
in the outer block, except for the standard textfiles
input
and
output
.
Input
and
output
are standard file variables that the system associates
by default with system dependent files. These files are opened
automatically at the beginning of program execution.
Input
or
output
need only appear as program parameters if some file operation (for
example,
read
or
write
) refers to them explicitly or by default.
Program parameters are usually the names of file variables. The
association between logical and physical files is system-dependent. The
association between formal and actual program parameters is also
system-dependent.
The program block consists of an optional declaration part and a required
statement part.
Syntax
Program_heading:
Block
A
block
is a syntactically complete section of code. There are two parts
to a block; the
declaration
part and the
executable
part. Blocks may be
nested
. It is important that all objects appearing in the executable
part be defined in the declaration part or in the declaration part of an
outer block.
Syntax
block: