introduce TYPE_NAME token type

This commit is contained in:
Josh Holtrop 2018-05-08 20:39:49 -04:00
parent 584fdae2ba
commit d5ae35df60

View File

@ -110,6 +110,8 @@ int yylex(YYSTYPE *, YYLTYPE *);
%token STRING_LITERAL;
%token IDENTIFIER;
%token TYPE_NAME;
%start translation_unit
%%
@ -301,7 +303,7 @@ type_specifier
| UNSIGNED
| struct_or_union_specifier
| enum_specifier
| IDENTIFIER
| TYPE_NAME
;
struct_or_union_specifier