The Program Unit
The syntax for an EQUEL/Pascal program definition is:
program program_name [(identifier {, identifier})];
[declarations]
begin
[statements]
end.
where declarations can include any of the following:
label label_declarations
const constant_declarations
type type_declarations
var variable_declarations
procedures
functions
host_code
For a detailed description of the various types of declarations, see
Declaration Syntax.
Syntax Notes:
1. The program_name and the identifiers are not processed by EQUEL.
2. The various declaration sections can appear in any order and can be repeated.
3. The label declaration section is allowed only for compatibility with earlier versions of Ingres.