HP Pascal/iX Reference Manual (31502-90022)

6-: 4
Empty Statements
The
empty
statement causes only the advancement of program flow to the
next statement. It is often used to indicate that nothing occurs. In
the example, no action occurs when i equals 2, 3, 4, 6, 7, 8, 9, or 10.
Example
CASE i OF
0 : start;
1 : proceed;
2..4 : ;
5 : report_error;
6..10: ;
11 : stop;
OTHERWISE fatal_error;
END;
IF i IN [2..4,6..10] THEN
{ do nothing }
ELSE
{ cases }
NOTE In the following example, the last semicolon is not required. Its
presence means that there is an empty statement before END. If the
semicolon were removed, there would not be an empty statement.
Empty statements do not affect the run-time speed of your program.
BEGIN
I:= J + 1;
K:= I + J;
END
Assignment
An
assignment
statement assigns a value to a variable access or a
function result. The assignment statement consists of a variable or
function
identifier,
an optional
selector,
a special
symbol
(:=), and an
expression
that computes a value. The type of the expression must be
assignment compatible with the type of the receiving element.
The receiving element may be of any type except file, or a structured
type containing a file type component. An appropriate selector permits
assignment to a component of a structured variable or structured function
result.
NOTE An implementation may evaluate the variable access and the
expression in any order.
Syntax
Assignment_statement