Semantics : WhileStatement

WhileStatement  ::=  ( LABEL_NAME : )? while ( ( )? Expr ( ) )? Statement

Used by:  

This while statement is a basic flow-control statement that should be familiar to any programmers. The parentheses for the condition expression are optional.

The break and continue statements may take a label and work the same way as in Java.