HP 3000 Manuals

Basic Symbols [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

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.                      |
|                       |                                                                  |
--------------------------------------------------------------------------------------------

          Table 2-1.  Special Symbols (cont.) 

--------------------------------------------------------------------------------------------
|                       |                                                                  |
|        Symbol         |                           Description                            |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           :           | Denotes a statement label, list of case constants, or variable   |
|                       | identifiers.                                                     |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           ^           | Define or dereference pointers, access file buffer.  May be      |
|                       | replaced by @.                                                   |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          <>           | Not equal.                                                       |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          <=           | Less than or equal, subset.                                      |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          >=           | Greater than or equal, superset.                                 |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          :=           | Assign value to a variable.                                      |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          ..           | Delimit a subrange.                                              |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|          { }          | Delimit a comment.  May be replaced by the (*   *) pair.         |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           #           | Encode a control character.                                      |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           $           | Delimit a compiler option.                                       |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           '           | Delimit a string literal.                                        |
|                       |                                                                  |
--------------------------------------------------------------------------------------------
|                       |                                                                  |
|           _           | May appear within an identifier.                                 |
|                       |                                                                  |
--------------------------------------------------------------------------------------------



MPE/iX 5.0 Documentation