-
Notifications
You must be signed in to change notification settings - Fork 103
Statements
kazuho edited this page Jul 2, 2012
·
7 revisions
Statement | Description |
---|---|
; | empty statement |
expr; | evaluates the expr |
super(...); | calls the constructor of the super class |
return expr; | returns the result of the expr |
return; | returns void |
delete expr; | deletes the property of a Map returned by the expr |
break; | exits from the inner-most loop or switch statement |
break LABEL; | exits to the loop or switch statement with label LABEL |
continue; | skips to the end of the loop statement |
continue LABEL; | skip to the end of the loop statement with label LABEL |
[LABEL:]do statement while (expr); | do-while statement |
[LABEL:]for (expr in expr) statement | for-in statement |
[LABEL:]for (var varname in expr) statement | |
[LABEL:]for (expr; expr; expr) statement | for statement |
[LABEL:]for (var varname = expr; expr; expr) statement | |
[LABEL:]while (expr) statement | while statement |
if (expr) statement [else statement] | if statement |
[LABEL:]switch (expr) statement | switch statement |
case expr:statement | case statement |
default:statement | default statement |
try { statement* } [catch (varname : type) { statement* }]* [finally { statement* }] | try-catch-finally statement |