glr.c: fix signature when using custom error messages

Reported by Tom Shields <thomas.evans.shields@icloud.com>.

* data/skeletons/glr.c (yypcontext_location): Fix return type.
* tests/calc.at: Check the case pure, location, custom error messages.
This commit is contained in:
Akim Demaille
2021-08-11 17:41:27 +02:00
parent e4e3cbce77
commit c2ba260487
3 changed files with 6 additions and 2 deletions

2
TODO
View File

@@ -185,6 +185,8 @@ Line -1 and -3 should mention CATEGORIE, not CATEGORY.
* Bison 3.8
** Rewrite glr.cc (currently glr2.cc)
*** custom error messages
*** Remove jumps
We can probably replace setjmp/longjmp with exceptions. That would help
tremendously other languages such as D and Java that probably have no