mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
c, c++: rename yysymbol_type_t as yysymbol_kind_t
See https://lists.gnu.org/r/bison-patches/2020-04/msg00031.html * data/skeletons/c.m4, data/skeletons/glr.c, data/skeletons/yacc.c (yysymbol_type_t): Rename as... (yysymbol_kind_t): this. Adjust dependencies. * data/skeletons/c++.m4, data/skeletons/glr.cc, data/skeletons/lalr1.cc (symbol_type_type): Rename as... (symbol_kind_type): this. Adjust dependencies.
This commit is contained in:
@@ -290,7 +290,7 @@ yyreport_syntax_error (const yypcontext_t *ctx)
|
||||
// Report the tokens expected at this point.
|
||||
{
|
||||
enum { TOKENMAX = 10 };
|
||||
yysymbol_type_t expected[TOKENMAX];
|
||||
yysymbol_kind_t expected[TOKENMAX];
|
||||
int n = yyexpected_tokens (ctx, expected, TOKENMAX);
|
||||
if (n < 0)
|
||||
// Forward errors to yyparse.
|
||||
@@ -302,7 +302,7 @@ yyreport_syntax_error (const yypcontext_t *ctx)
|
||||
}
|
||||
// Report the unexpected token.
|
||||
{
|
||||
yysymbol_type_t lookahead = yypcontext_token (ctx);
|
||||
yysymbol_kind_t lookahead = yypcontext_token (ctx);
|
||||
if (lookahead != YYSYMBOL_YYEMPTY)
|
||||
fprintf (stderr, " before %s", yysymbol_name (lookahead));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user