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 /TODO | |
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 'TODO')
-rw-r--r-- | TODO | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -7,6 +7,11 @@ Several features are not available in all the backends. - token constructors: Java and C * Short term +** glr.c: too many definitions of YYLLOC_DEFAULT +See test 241. + +241. headers.at:187: testing Sane headers: %locations c++ %glr-parser ... + ** consistency token vs terminal @@ -108,6 +113,11 @@ since it is no longer bound to a particular parser, it's just a as lr0.cc, why upper case? * Various +** Rewrite glr.cc in C++ +As a matter of fact, it would be very interesting to see how much we can +share between lalr1.cc and glr.cc. Most of the skeletons should be common. +It would be a very nice source of inspiration for the other languages. + ** YYERRCODE Defined to 256, but not used, not documented. Probably the token number for the error token, which POSIX wants to be 256, but which |