diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-12-30 12:07:30 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-12-31 07:48:09 +0100 |
commit | 90a8537e6287f92fb3d5be0258a69247a742f12e (patch) | |
tree | d4cbcb39c2c54f0b858ec41f9d26cff180f10a92 /NEWS | |
parent | 6653c912da731e9a3a8ae6c3ebd499e42165e212 (diff) | |
download | bison-90a8537e6287f92fb3d5be0258a69247a742f12e.tar.gz |
glr.cc: support syntax_error exceptions
Kindly requested by Аскар Сафин (Askar Safin).
http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00033.html
* data/skeletons/glr.c (b4_glr_cc_if): New.
Use it.
(yygetToken): Catch syntax_errors.
* data/skeletons/glr.cc (YY_EXCEPTIONS): New.
* tests/c++.at: Check it.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -147,6 +147,11 @@ GNU Bison NEWS return parser::token::PAIR; } +*** C++: Syntax error exceptions in GLR + + The glr.cc skeleton now supports syntax_error exceptions thrown from user + actions, or from the scanner. + *** More POSIX Yacc compatibility warnings More Bison specific directives are now reported with -y or -Wyacc. This |