Skip to content

Commit

Permalink
No need for () inside [].
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Feb 2, 2017
1 parent 797b108 commit 6da1dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/c_syntax.wsn
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ direct_declarator
= id
| "(" declarator ")"
| direct_declarator "[" [const_exp] "]"
| direct_declarator "(" [(param_type_list|id_list)] ")"
| direct_declarator "(" [param_type_list|id_list] ")"
.
pointer
= "*" [type_qualifier_list] [pointer]
Expand All @@ -71,7 +71,7 @@ param_list
= {param_decl ","} param_decl
.
param_decl
= decl_specs [(declarator|abstract_declarator)]
= decl_specs [declarator|abstract_declarator]
.
id_list
= {id ","} id
Expand Down

0 comments on commit 6da1dc9

Please sign in to comment.