mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
YYFAIL: remove.
* data/lalr1.java, data/yacc.c, src/scan-code.l: Remove YYFAIL support. * NEWS, TODO: Update.
This commit is contained in:
@@ -248,20 +248,7 @@ ref -?[0-9]+|{id}|"["{id}"]"|"$"
|
||||
{splice} STRING_GROW;
|
||||
[\n\r] STRING_GROW; if (in_cpp) in_cpp = need_semicolon = false;
|
||||
[ \t\f] STRING_GROW;
|
||||
|
||||
/* YYFAIL is undocumented and was formally deprecated in Bison
|
||||
2.4.2. */
|
||||
YYFAIL {
|
||||
STRING_GROW; need_semicolon = true;
|
||||
complain_at (*loc, Wother,
|
||||
_("use of YYFAIL, which is deprecated and will be removed"));
|
||||
}
|
||||
|
||||
/* The sole purpose of this is to make sure identifiers that merely
|
||||
contain YYFAIL don't produce the above warning. */
|
||||
[A-Za-z_][0-9A-Za-z_]* STRING_GROW; need_semicolon = true;
|
||||
|
||||
. STRING_GROW; need_semicolon = true;
|
||||
. STRING_GROW; need_semicolon = true;
|
||||
}
|
||||
|
||||
<SC_SYMBOL_ACTION>
|
||||
|
||||
Reference in New Issue
Block a user