mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
YYFAIL: warn about uses and remove from lalr1.java.
* NEWS (2.5): Document. * data/lalr1.java (parser::YYStack::YYFAIL): Rename to YYERRLAB, and make it private. Update all uses. * src/scan-code.l (SC_RULE_ACTION): Implement warning.
This commit is contained in:
11
NEWS
11
NEWS
@@ -169,6 +169,17 @@ Bison News
|
||||
POSIX Yacc whose use is reported by -Wyacc, and rejected in Yacc
|
||||
mode (--yacc).
|
||||
|
||||
** YYFAIL now produces warnings and Java parsers no longer implement it.
|
||||
|
||||
YYFAIL has existed for many years as an undocumented feature of
|
||||
deterministic parsers in C generated by Bison. More recently, it was
|
||||
a documented feature of Bison's experimental Java parsers. As
|
||||
promised in Bison 2.4.2's NEWS entry, any appearance of YYFAIL in a
|
||||
semantic action now produces a deprecation warning, and Java parsers
|
||||
no longer implement YYFAIL at all. For further details, including a
|
||||
discussion of how to suppress C preprocessor warnings about YYFAIL
|
||||
being unused, see the Bison 2.4.2 NEWS entry.
|
||||
|
||||
** Temporary hack for adding a semicolon to the user action.
|
||||
|
||||
Previously, Bison appended a semicolon to every user action for
|
||||
|
||||
Reference in New Issue
Block a user