Contents | Prev | Next | Index


Label Statements

A label statement defines a point inside a statement sequence which can used as goto-targets for goto statements. The label identifier or number must be introduced in a label list of the declaration parrt of the block.

Label Declaration
decl          ::= LABEL label_list ;
label_list ::= label_list , label
::= label label ::= <integer> ::= <identifier>

Label Statement
label_stmt    ::= label :

Notice, that in this compiler GOTO statements are not yet implemented because there is no GOTO in the output Java language available. Labels are recognized by this compiler, but they are not processed.


Contents | Prev | Next | Index

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