aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cparser/handcrafted.messages8
-rw-r--r--cparser/pre_parser.mly7
2 files changed, 8 insertions, 7 deletions
diff --git a/cparser/handcrafted.messages b/cparser/handcrafted.messages
index a145972e..2528a42e 100644
--- a/cparser/handcrafted.messages
+++ b/cparser/handcrafted.messages
@@ -1277,8 +1277,8 @@ translation_unit_file: INT PRE_NAME VAR_NAME EQ LPAREN PRE_NAME VAR_NAME SEMICOL
# can be continued with a comma and another expression.
# So, let's just say a closing parenthesis is expected.
-Up to this point, a parenthesis '(' and an expression have been recognized:
- $1 $0
+Up to this point, an expression have been recognized:
+ $0
If this expression is complete,
then at this point, a closing parenthesis ')' is expected.
@@ -2668,8 +2668,8 @@ translation_unit_file: INT LPAREN PRE_NAME VAR_NAME SEMICOLON
## In state 256, spurious reduction of production declarator -> declarator_noattrend attribute_specifier_list
##
-Up to this point, an opening parenthesis and a declarator have been recognized:
- $1 $0
+Up to this point, a declarator have been recognized:
+ $0
If this declarator is complete,
then at this point, a closing parenthesis ')' is expected.
diff --git a/cparser/pre_parser.mly b/cparser/pre_parser.mly
index 0cc30668..d217a7a4 100644
--- a/cparser/pre_parser.mly
+++ b/cparser/pre_parser.mly
@@ -634,10 +634,11 @@ function_specifier:
and with TYPEDEF_NAME in lookahead position, we know (1) can safely
be ignored (if (1) is still possible after reading the next token,
(2) will also be possible, and the conflict has to be solved in
- favor of (2)). We add low_prec in declaration_specifier, but not in
+ favor of (2)). We add low_prec in declaration_identifier, but not in
typedef_name, so that it has to be reduced in (1) but not in (2).
- This is a shift/reduce conflict that can be solved using precedences.
-*)
+ This is a shift/reduce conflict that can be solved using
+ precedences.
+ *)
low_prec : %prec lowPrec1 {}
declarator_identifier:
| PRE_NAME low_prec i = TYPEDEF_NAME