HP Pascal/iX Reference Manual (31502-90022)

4-: 4
Table 4-1. HP Pascal Operands
---------------------------------------------------------
| | |
| Operand | Chapter |
| | |
---------------------------------------------------------
| | |
| literal | 4 |
| | |
---------------------------------------------------------
| | |
| constant | 4 |
| | |
---------------------------------------------------------
| | |
| variable | 5 |
| | |
---------------------------------------------------------
| | |
| set constructor | 4 |
| | |
---------------------------------------------------------
| | |
| function call | 4,8 |
| | |
---------------------------------------------------------
| | |
| dereferenced pointer | 4 |
| | |
---------------------------------------------------------
| | |
| array selector | 4 |
| | |
---------------------------------------------------------
| | |
| record selector | 4 |
| | |
---------------------------------------------------------
| | |
| file buffer selector | 4 |
| | |
---------------------------------------------------------
Operators
An
operator
defines an action to be performed on one or more operands and
produces a value. An operator may be classified as
arithmetic, Boolean,
relational, set,
or
concatenation
. A particular symbol may occur in more
than one class of operators. For example, the symbol + is an
arithmetic,
set,
and
concatenation
operator representing numeric addition, set union,
and string concatenation, respectively. The class of the operator is
determined by the type of the operands.
Precedence ranking determines the order in which the compiler evaluates a
sequence of operators. For more information about precedence, refer to
the section on Operator Precedence in this chapter.
The value resulting from the action of an operator may in turn serve as
an operand for another operator. Table 4-2 lists each HP Pascal
operator together with its actions, permissible operands, and type of
results. In the table, the term
real
indicates both real and longreal
types and
integer
indicates any integral-type.