HP Pascal/iX Reference Manual (31502-90022)

2- 1
Chapter 2 Language Elements
A Pascal program is a sequence of statements that, when executed in a
specified order, processes data to produce desired results. The elements
of Pascal include basic
symbols, reserved words, identifiers, numbers,
comments, separators,
and
literals
. The statements are made up of
different elements depending on the needs of the program.
This chapter describes in detail the elements of statements in the HP
Pascal language.
Basic Symbols
The
basic symbols
consist of letters, digits, and special symbols. The
letters include A..Z and a..z. The digits are 0 through 9. Table 2-1
(*) lists the special symbols that are valid in HP Pascal.
Table 2-1. Special Symbols
--------------------------------------------------------------------------------------------
| | |
| Symbol | Description |
| | |
--------------------------------------------------------------------------------------------
| | |
| + | Add, set union, concatenate strings, unary plus +. |
| | |
--------------------------------------------------------------------------------------------
| | |
| - | Subtract, set difference, unary minus -. |
| | |
--------------------------------------------------------------------------------------------
| | |
| * | Multiply, set intersection. |
| | |
--------------------------------------------------------------------------------------------
| | |
| / | Divide (real results). |
| | |
--------------------------------------------------------------------------------------------
| | |
| = | Equal to, type identifier. |
| | |
--------------------------------------------------------------------------------------------
| | |
| < | Less than. |
| | |
--------------------------------------------------------------------------------------------
| | |
| > | Greater than. |
| | |
--------------------------------------------------------------------------------------------
| | |
| ( ) | Delimit a parameter list or a expression. |
| | |
--------------------------------------------------------------------------------------------
| | |
| [ ] | Delimit an array or string index, set, or a constructor. May be |
| | replaced by the (. .) pair. |
| | |
--------------------------------------------------------------------------------------------
| | |
| . | Select record field, decimal point. |
| | |
--------------------------------------------------------------------------------------------
| | |
| , | Separate listed identifiers, values, or variables. |
| | |
--------------------------------------------------------------------------------------------
| | |
| ; | Separates statements and formal parameters. |
| | |
--------------------------------------------------------------------------------------------