mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-21 23:18:11 +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:
1 parent
5860cc8c1c
commit
84eedf86fe
3 files changed
+14
-11
No files matched your search
@@ -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