diff options
author | Melody Horn <melody@boringcactus.com> | 2020-11-02 20:52:52 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2020-11-02 20:52:52 -0700 |
commit | 5f78969d4a71908fd8ae43c886614ef0e5664eb0 (patch) | |
tree | 68bdb6af363c9732064f1e536fa23c1569862261 /syntax.md | |
parent | d17e0f73a57eb65c82eb942bf4b33e3c6d8335c3 (diff) | |
download | spec-5f78969d4a71908fd8ae43c886614ef0e5664eb0.tar.gz spec-5f78969d4a71908fd8ae43c886614ef0e5664eb0.zip |
define switch statement
Diffstat (limited to 'syntax.md')
-rw-r--r-- | syntax.md | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -3,15 +3,6 @@ ### Statements ```PEG -IfStatement ← 'if' Expression Block 'else' Block / - 'if' Expression Block - -SwitchStatement ← 'switch' Expression '{' SwitchCase+ '}' -SwitchCase ← CaseSpecifier Block / - 'default' Block -CaseSpecifier ← 'case' Expression ',' CaseSpecifier / - 'case' Expression ','? - WhileStatement ← 'while' Expression Block DoWhileStatement ← 'do' Block 'while' Expression ';' ForStatement ← 'for' VariableDefinition? ';' Expression ';' AssignmentStatementBody? Block |