From 5f78969d4a71908fd8ae43c886614ef0e5664eb0 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 2 Nov 2020 20:52:52 -0700 Subject: define switch statement --- syntax.md | 9 --------- 1 file changed, 9 deletions(-) (limited to 'syntax.md') diff --git a/syntax.md b/syntax.md index b8e4554..74e5cc3 100644 --- a/syntax.md +++ b/syntax.md @@ -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 -- cgit v1.2.3