Reserved Words [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
Reserved Words
Reserved words are symbols that have special meaning to the Pascal
language. They are the names of statements, data types, or operators. A
reserved word can be used in a program only in the context for which it
is defined. A reserved word cannot be redefined for use as an
identifier. It may, however, be used within comments or string literals.
A list of reserved words recognized by HP Pascal with a brief description
of each is given in Table 2-2 . A more detailed description of some
of the reserved words follows in this chapter. In some cases, a detailed
description is presented elsewhere in this manual. Table 2-2
provides the location of these instances by word and chapter.
NOTE At the ANSI and ISO standard level, OTHERWISE, IMPORT, EXPORT,
IMPLEMENT, and MODULE are not considered reserved words. The
compiler option STANDARD_LEVEL controls whether these identifiers
are recognized as reserved words. Refer to Chapter 12 for more
information about STANDARD_LEVEL. If the system programming
extensions are enabled, additional identifiers may be treated as
reserved words.
Table 2-2. Reserved Words
----------------------------------------------------------------------------------------------
| | | |
| Reserved Word(s) | Description | Chapter |
| | | Reference |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| AND | Boolean conjunction operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| ARRAY, OF | A structured type. | 3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| BEGIN...END | Delimit a compound statement or BLOCK. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| CASE...OF...OTHERWISE...END | A conditional statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| CONST | Begins constant definition section. | 5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| DIV | Integer division operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| EXPORT | Begins module export section. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| FILE...OF | Structured type. | 3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| FOR...TO...DOWNTO...DO | Repetitive statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| FUNCTION | Begins a function declaration. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| GOTO | Control transfer statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| IF...THEN...ELSE | Conditional statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| IMPLEMENT | Begins module implement section. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| IMPORT | Begins module import section. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| IN | Set inclusion operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| LABEL | Begins label definition section. | 5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| MOD | Integer modulus operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
Table 2-2. Reserved Words (cont.)
----------------------------------------------------------------------------------------------
| | | |
| Reserved Word(s) | Description | Chapter |
| | | Reference |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| MODULE | Begins a module declaration. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| NIL | Special pointer value. | 5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| NOT | Boolean negation operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| OR | Boolean disjunction operator. | 4 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| PACKED | Controls allocation for structured | 3 |
| | type. | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| PROCEDURE | Begins a procedure declaration. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| PROGRAM | Program heading. | 7 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| RECORD...CASE...OF...END | Structured type. | 3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| REPEAT...UNTIL | Repetitive statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| SET...OF | Structured type. | 3 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| TYPE | Begins a type definition section. | 5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| VAR | Begins a variable declaration section. | 5 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| WHILE...DO | Repetitive statement. | 6 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| WITH...DO | Opens record scopes. | 6 |
| | | |
----------------------------------------------------------------------------------------------
MPE/iX 5.0 Documentation