Skip to content

Instantly share code, notes, and snippets.

@pcyu16
Created June 26, 2010 19:31
Show Gist options
  • Select an option

  • Save pcyu16/454282 to your computer and use it in GitHub Desktop.

Select an option

Save pcyu16/454282 to your computer and use it in GitHub Desktop.
statement:
switch_stmt | case_label | compound_statement
;
switch_stmt:
SWITCH '(' expression ')' statement
;
case_label:
CASE NUM ':'
|
DEFAULT ':'
;
compound_statement:
'{' stmt_list '}'
stmt_list:
stmt
|
stmt_list stmt
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment