YYFAIL: remove.

* data/lalr1.java, data/yacc.c, src/scan-code.l: Remove YYFAIL support.
* NEWS, TODO: Update.
This commit is contained in:
Akim Demaille
2012-07-22 20:17:54 +02:00
parent a34361a52a
commit 47db7ed1a8
5 changed files with 10 additions and 44 deletions

View File

@@ -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>