diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-09-07 06:41:54 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-09-12 12:03:58 +0200 |
commit | 85f5e3b9d5188b093ad9e6b382b77044b9bdec1f (patch) | |
tree | f299f3c285697593ea649e1b72494627b9be4f4c /tests | |
parent | c3a4686a0318333af08d3e6478a6313c03d8459b (diff) | |
download | bison-85f5e3b9d5188b093ad9e6b382b77044b9bdec1f.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/c++.at | 4 | ||||
-rw-r--r-- | tests/local.at | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/c++.at b/tests/c++.at index a9d393c2..0472c47c 100644 --- a/tests/c++.at +++ b/tests/c++.at @@ -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 ()) { diff --git a/tests/local.at b/tests/local.at index adde4e4c..170e5da1 100644 --- a/tests/local.at +++ b/tests/local.at @@ -378,7 +378,7 @@ m4_pushdef([AT_TOKEN], m4_pushdef([AT_YYSTYPE], -[AT_CXX_IF([AT_NAMESPACE[::]AT_PARSER_CLASS[::semantic_type]], +[AT_CXX_IF([AT_NAMESPACE[::]AT_PARSER_CLASS[::value_type]], [AT_API_PREFIX[STYPE]])]) m4_pushdef([AT_YYLTYPE], [AT_CXX_IF([AT_NAMESPACE[::]AT_PARSER_CLASS[::location_type]], |