HP Pascal/iX Reference Manual (31502-90022)

6: 1
Chapter 6 Statements
A
statement
is a sequence of special
symbols
, reserved
words
, and
expressions
that either performs a specific set of actions on a program's
data or controls program flow. Table 6-1 lists and describes
statements.
Table 6-1. HP Pascal Statements and Purposes
---------------------------------------------------------------------------
| | |
| Statement Type | Purpose |
| | |
---------------------------------------------------------------------------
| | |
| compound | Group statements |
| | |
---------------------------------------------------------------------------
| | |
| empty | Do nothing |
| | |
---------------------------------------------------------------------------
| | |
| assignment | Assign a value to a variable |
| | |
---------------------------------------------------------------------------
| | |
| procedure | Invoke a procedure |
| | |
---------------------------------------------------------------------------
| | |
| GOTO | Transfer control unconditionally |
| | |
---------------------------------------------------------------------------
| | |
| IF, CASE | Conditional selection |
| | |
---------------------------------------------------------------------------
| | |
| WHILE, REPEAT, FOR | Iterate a group of statements |
| | |
---------------------------------------------------------------------------
| | |
| WITH | Manipulate record fields |
| | |
---------------------------------------------------------------------------
The empty, assignment, procedure, and GOTO statements are commonly called
simple
statements. The
compound
, IF, CASE, WHILE, REPEAT, FOR, and WITH
statements are referred to as
structured statements
because they
themselves may contain other statements.
Syntax
Statements: