summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-12-13 08:19:54 +0100
committerAkim Demaille <akim.demaille@gmail.com>2018-12-14 05:10:18 +0100
commitaadf6c0bf355359c7cee6e69d80a4b9c8ab91340 (patch)
treeeebf1bed6d4edf86e4391505668d4b4c41337406 /NEWS
parentdbb855895fbafe5226b3ac607eee4b22837c7ff7 (diff)
downloadbison-aadf6c0bf355359c7cee6e69d80a4b9c8ab91340.tar.gz
parser: reprecate %nterm back
After having spent quite some time on cleaning the handling of symbol declarations in the grammar files, I believe we should keep it. It looks like it's a duplicate of %type, but it is not. While POSIX Yacc requires %type to apply only to nonterminal symbols, it appears that both byacc and bison accept it for tokens too. And some experienced users do actually expect this feature to group symbols (terminal or not) by type ("On the other hand, it is generally more useful IMHO to group terminals and non-terminals with the same type tag together", http://lists.gnu.org/archive/html/bug-bison/2018-10/msg00000.html). Even Bison's own parser does this today (see CHAR). Basically reverts 7928c3e6fbdf47ff81184966cee937e6aa694b94. * src/scan-gram.l (%nterm): Dedeprecate, but issue a Wyacc warning. * tests/input.at: Adjust expectations. (Yacc warnings on symbols): New. * src/symtab.c (symbol_class_set): Fix error introduced in 20b07467938cf880a1d30eb30d6e191843a21fec.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 0 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 5f23fa79..b62141f1 100644
--- a/NEWS
+++ b/NEWS
@@ -19,10 +19,6 @@ GNU Bison NEWS
** Deprecated features
- The directive %nterm, an historical heritage from an ancestor of Bison,
- 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.