Allow TYPE_NAME or IDENTIFIER to follow struct/union

This commit is contained in:
Josh Holtrop 2018-05-09 20:27:29 -04:00
parent aa6ef6b8d6
commit fa32c9bba6

View File

@ -354,9 +354,14 @@ type_specifier
; ;
struct_or_union_specifier struct_or_union_specifier
: struct_or_union IDENTIFIER LCURLY struct_declaration_list RCURLY : struct_or_union identifier_or_type_name LCURLY struct_declaration_list RCURLY
| struct_or_union LCURLY struct_declaration_list RCURLY | struct_or_union LCURLY struct_declaration_list RCURLY
| struct_or_union IDENTIFIER | struct_or_union identifier_or_type_name
;
identifier_or_type_name
: IDENTIFIER
| TYPE_NAME
; ;
struct_or_union struct_or_union