mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
warn about typed mid-rule actions in Yacc mode
* src/reader.c (grammar_current_rule_action_append): Warn. * tests/input.at (AT_CHECK_UNUSED_VALUES): Check.
This commit is contained in:
@@ -528,6 +528,9 @@ grammar_current_rule_action_append (const char *action, location loc,
|
||||
{
|
||||
if (current_rule->action_props.code)
|
||||
grammar_midrule_action ();
|
||||
if (type)
|
||||
complain (&loc, Wyacc,
|
||||
_("POSIX Yacc does not support typed midrule actions"));
|
||||
/* After all symbol declarations have been parsed, packgram invokes
|
||||
code_props_translate_code. */
|
||||
code_props_rule_action_init (¤t_rule->action_props, action, loc,
|
||||
|
||||
Reference in New Issue
Block a user