From d5ae35df609c4f7fa40a79ed61b9590f0a37c47c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 8 May 2018 20:39:49 -0400 Subject: [PATCH] introduce TYPE_NAME token type --- src/parser/parser.yc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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