Skip to content

Commit

Permalink
Use {} for repetition.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Feb 2, 2017
1 parent 90ae1a0 commit 918cb67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/c_syntax.wsn
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ param_type_list
= param_list ["," "..."]
.
param_list
= [param_list ","] param_decl
= {param_decl ","} param_decl
.
param_decl
= decl_specs [(declarator|abstract_declarator)]
.
id_list
= [id_list ","] id
= {id ","} id
.
initializer
= assignment_exp
| "{" initializer_list "}"
| "{" initializer_list "," "}"
.
initializer_list
= [initializer_list ","] initializer
= {initializer ","} initializer
.
type_name
= spec_qualifier_list [abstract_declarator]
Expand Down Expand Up @@ -117,7 +117,7 @@ compound_stat
= "{" [decl_list] [stat_list] "}"
.
stat_list
= [stat_list] stat
= {stat} stat
.
selection_stat
= "if" "(" exp ")" stat ["else" stat]
Expand Down

0 comments on commit 918cb67

Please sign in to comment.