Statement syntax as determined by punctuation is very important in
programming languages. The list of rows in the for statement is
terminated by a colon ":". Each subsequent intermediate statement
is terminated with a semi-colon, ";". The last statement is
terminated by a period ".". The row restriction imposed by the for
statment applies to all statements until a statement with a period
is detected. The range of application is called the "scope" of the
statement.
Recall the syntax of the previous programs. The program name is
followed by a colon. The statements in the body of the program end
with ";" and the last (i.e. END) statement in a program ends with
a period ".". The similarity between the program syntax and the
for statement syntax is intentional. It is intended to provide a
regular pattern of structure in the program to make it easy to
discover punctuation errors.
Default values