Contents | Prev | Next | Index


Compound Statements

The compound statement specifies that its component statements are to be executed in the same sequence as they are written. The component statement is a statement sequence treated as one statement. This is useful in contexts where the Pascal grammar only allows one statement. BEGIN and END bracket the statements, which are separated by semicolons.

compound_stmt  ::= BEGIN stmt_seq END
stmt_seq ::= stmt_seq ; stmt
::= stmt


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Jun 9, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com