ShockScript: Statements
The ω superscript used throughout the specification translates to one of { abbrev, noShortIf, full }.
Syntax
-
Statementω :
-
SuperStatement Semicolonω
Block
IfStatementω
SwitchStatement
DoStatement Semicolonω
WhileStatementω
ForStatementω
WithStatementω
ContinueStatement Semicolonω
BreakStatement Semicolonω
ReturnStatement Semicolonω
ThrowStatement Semicolonω
TryStatement
ExpressionStatement Semicolonω
LabeledStatementω
-
Substatementω :
-
EmptyStatement
Statementω
-
Substatements :
-
«empty»
SubstatementsPrefix Substatementabbrev
-
SubstatementsPrefix :
-
«empty»
SubstatementsPrefix Substatementfull
-
Semicolonabbrev :
-
;
VirtualSemicolon
«empty»
-
SemicolonnoShortIf :
-
Semicolonabbrev
-
Semicolonfull :
-
;
VirtualSemicolon