mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
Pass the token type to yysyntax_error.
* data/yacc.c (yysyntax_error): Take the transated token instead of the raw number. Adjust callers. * TODO: Update.
This commit is contained in:
4
TODO
4
TODO
@@ -156,10 +156,6 @@ other improvements and also made it faster (probably because memory
|
||||
management is performed once instead of three times). I suggest that
|
||||
we do the same in yacc.c.
|
||||
|
||||
** yysyntax_error
|
||||
In lalr1.cc we invoke it with the translated lookahead (yytoken), and
|
||||
yacc.c uses yychar. I don't see why.
|
||||
|
||||
** yysyntax_error
|
||||
The code bw glr.c and yacc.c is really alike, we can certainly factor
|
||||
some parts.
|
||||
|
||||
Reference in New Issue
Block a user