mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
Clean up yesterday's patch.
* parse-gram.y (rhs): Move grammar_midrule_action invocation from here to... * src/reader.c (grammar_current_rule_action_append): ... here for consistency with grammar_current_rule_symbol_append. * tests/regression.at (Braced code in declaration in rules section): Make yyerror and yylex static as usual.
This commit is contained in:
@@ -473,11 +473,7 @@ rhs:
|
||||
| rhs symbol
|
||||
{ grammar_current_rule_symbol_append ($2, @2); }
|
||||
| rhs "{...}"
|
||||
{
|
||||
if (current_rule && current_rule->action)
|
||||
grammar_midrule_action ();
|
||||
grammar_current_rule_action_append ($2, @2);
|
||||
}
|
||||
{ grammar_current_rule_action_append ($2, @2); }
|
||||
| rhs "%prec" symbol
|
||||
{ grammar_current_rule_prec_set ($3, @3); }
|
||||
| rhs "%dprec" INT
|
||||
|
||||
Reference in New Issue
Block a user