parser: deprecate %error-verbose

It is unfortunate that %error_verbose was properly diagnosed as
obsoleted by "%define parse.error verbose", but %error-verbose was
not.

* src/parse-gram.y (%error-verbose): Remove support.
* src/scan-gram.l: Do it here instead, with a warning.
* tests/input.at (Deprecated directives): Check it.
This commit is contained in:
Akim Demaille
2018-11-12 07:16:59 +01:00
parent be7c620d65
commit 35b8e0e947
4 changed files with 12 additions and 9 deletions

3
NEWS
View File

@@ -23,6 +23,9 @@ GNU Bison NEWS
was never officially documented. Its use now triggers warnings.
Eventually, support will be removed. Use %type instead.
The use of the %error-verbose directive is deprecated in favor of "%define
parse.error verbose" since Bison 3.0, but no warning was issued.
* Noteworthy changes in release 3.2.1 (2018-11-09) [stable]
** Bug fixes