diff --git a/src/parser/parser.yc b/src/parser/parser.yc index 8517c63..5aec199 100644 --- a/src/parser/parser.yc +++ b/src/parser/parser.yc @@ -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