[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/5] glr.cc: support syntax_error exceptions
From: |
Akim Demaille |
Subject: |
[PATCH 0/5] glr.cc: support syntax_error exceptions |
Date: |
Mon, 31 Dec 2018 07:53:56 +0100 |
Hi Askar,
Le 15 déc. 2018 à 21:38, Askar Safin <address@hidden> a écrit :
> Hi. I attempted to throw yy::parser::syntax_error from flex input file
> scanner.lpp and failed. I used GLR bison parser. Here is test code:
> https://paste.gg/p/anonymous/1d2fc78e88f444b0b8203bb3c20f8a53 . It
> seems yy::parser::syntax_error doesn't work GLR. It seems there is no
> definition for constructor and there is no code in parser for catching
> such exception.
>
> So, please, fix.
Hum.
> Or at least write in docs, that this is not supported. Of course,
> manual should document all features not supported in GLR.
Contributions are always most welcome.
I'll push these commits to master once the CI validates them
(https://travis-ci.com/akimd/bison/builds/95974577).
Meanwhile, there's a tarball here.
https://www.lrde.epita.fr/~akim/private/bison/bison-3.2.1.150-90a8.tar.gz
https://www.lrde.epita.fr/~akim/private/bison/bison-3.2.1.150-90a8.tar.xz
Cheers.
Akim Demaille (5):
c++: inline the implementation of syntax_error in its definition
tests: refactor
style: reduce scopes in glr.c
glr.c: factor the calls to yylex
glr.cc: support syntax_error exceptions
NEWS | 5 ++
TODO | 5 ++
data/skeletons/c++.m4 | 13 ++--
data/skeletons/glr.c | 150 +++++++++++++++++++++++-------------------
data/skeletons/glr.cc | 12 +++-
tests/c++.at | 25 ++++---
7 files changed, 126 insertions(+), 85 deletions(-)
--
2.20.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 0/5] glr.cc: support syntax_error exceptions,
Akim Demaille <=