On syntax errors, report the token on which we choked.

* bison.s1 (yyparse): In the label yyerrlab, when YYERROR_VERBOSE,
add yychar in msg.
This commit is contained in:
Akim Demaille
2000-03-17 13:17:09 +00:00
parent 7b306f528a
commit 75bbe78d87
4 changed files with 32 additions and 17 deletions

View File

@@ -1,3 +1,10 @@
2000-03-17 Akim Demaille <akim@epita.fr>
On syntax errors, report the token on which we choked.
* bison.s1 (yyparse): In the label yyerrlab, when YYERROR_VERBOSE,
add yychar in msg.
2000-03-17 Akim Demaille <akim@epita.fr>
* reader.c (copy_at): New function.