introduce TYPE_NAME token type
This commit is contained in:
parent
584fdae2ba
commit
d5ae35df60
@ -110,6 +110,8 @@ int yylex(YYSTYPE *, YYLTYPE *);
|
|||||||
%token STRING_LITERAL;
|
%token STRING_LITERAL;
|
||||||
%token IDENTIFIER;
|
%token IDENTIFIER;
|
||||||
|
|
||||||
|
%token TYPE_NAME;
|
||||||
|
|
||||||
%start translation_unit
|
%start translation_unit
|
||||||
|
|
||||||
%%
|
%%
|
||||||
@ -301,7 +303,7 @@ type_specifier
|
|||||||
| UNSIGNED
|
| UNSIGNED
|
||||||
| struct_or_union_specifier
|
| struct_or_union_specifier
|
||||||
| enum_specifier
|
| enum_specifier
|
||||||
| IDENTIFIER
|
| TYPE_NAME
|
||||||
;
|
;
|
||||||
|
|
||||||
struct_or_union_specifier
|
struct_or_union_specifier
|
||||||
|
Loading…
x
Reference in New Issue
Block a user