HP Pascal/iX Reference Manual (31502-90022)

2- 5
| | | |
----------------------------------------------------------------------------------------------
| | | |
| WITH...DO | Opens record scopes. | 6 |
| | | |
----------------------------------------------------------------------------------------------
Identifiers
An HP Pascal
identifier
consists of a letter preceding an optional
character sequence of letters, digits, or the underscore character (_) up
to a source line in length with all characters significant without
respect to case.
Identifiers are used to denote declared constants, types, variables,
procedures, functions, modules, and programs.
A letter may be any of the letters in the subranges A through Z or a
through z. The compiler makes no distinction between upper and lower
case in identifiers. A digit may be any of the digits 0 through 9. The
underscore (_) is an HP Standard Pascal extension of ANSI/IEEE770X3.97 -
1983 Standard Pascal.
In general, an identifier must be defined before using it. Four
exceptions are:
* Identifiers that define pointer types and are themselves defined
later in the same declaration part.
* Identifiers that appear as program parameters and are declared
subsequently as variables.
* Predefined identifiers such as integer and char.
* Forward procedures or functions.
An identifier does not need to be defined when it is a program, module,
procedure, or function name, or one of the identifiers defining an
enumerated type. Its initial appearance in a function, procedure,
module, or program header is the "defining occurrence."
Finally, HP Pascal has a number of standard identifiers that may be
redeclared. These standard identifiers include names of standard
procedures and functions, standard file variables, standard types,
standard constants, and procedure or function directives.
Reserved words
are language defined symbols whose meaning can never
change. Therefore, an identifier cannot be declared that has the same
spelling as a reserved word.
For a list of reserved words recognized by HP Pascal, see Table 2-2 .
Syntax
Identifier: