mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 11:13:03 +00:00
c++: avoid using the obsolete names
* data/skeletons/c++.m4: Don't define obsolete identifiers in the case of glr2.cc. Let's not start with technical debt. * data/skeletons/glr2.cc, data/skeletons/lalr1.cc, * data/skeletons/variant.hh: Use token_kind_type, not token_type. * tests/c++.at, tests/local.at: Use value_type, not semantic_type.
This commit is contained in:
@@ -969,7 +969,7 @@ AT_DATA_GRAMMAR([[input.yy]],
|
||||
%code
|
||||
{
|
||||
#include <cstdlib>
|
||||
int yylex (yy::parser::semantic_type *);
|
||||
int yylex (yy::parser::value_type *);
|
||||
}
|
||||
|
||||
%define parse.error verbose
|
||||
@@ -1013,7 +1013,7 @@ AT_DATA_SOURCE([scan.cc],
|
||||
|
||||
// 'a': valid item, 's': syntax error, 'l': lexical error.
|
||||
int
|
||||
yylex (yy::parser::semantic_type *lval)
|
||||
yylex (yy::parser::value_type *lval)
|
||||
{
|
||||
switch (int res = getchar ())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user