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.
(cherry picked from commit 4395a9ff4f)

Conflicts:

	data/lalr1.java
This commit is contained in:
Joel E. Denny
2009-12-21 14:58:48 -05:00
parent 41d35e54d5
commit 62efdd2a85
4 changed files with 39 additions and 10 deletions

11
NEWS
View File

@@ -119,6 +119,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