mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
tests: factor the access to token kinds
* tests/local.at (AT_BISON_OPTION_PUSHDEFS): Define AT_TOKEN. (AT_BISON_OPTION_POPDEFS): Undefine it. * tests/actions.at, tests/c++.at, tests/calc.at: Use AT_TOKEN.
This commit is contained in:
@@ -355,6 +355,11 @@ m4_pushdef([AT_PURE_LEX_IF],
|
||||
m4_pushdef([AT_TOKEN_TRANSLATE_IF],
|
||||
[AT_ERROR_CUSTOM_IF([$1], [AT_ERROR_DETAILED_IF([$1], [$2])])])
|
||||
|
||||
m4_pushdef([AT_TOKEN],
|
||||
[AT_CXX_IF([AT_CXX_IF([AT_NAMESPACE::parser::token::])[]AT_TOKEN_PREFIX[$1]],
|
||||
[AT_TOKEN_PREFIX[$1]])])
|
||||
|
||||
|
||||
m4_pushdef([AT_YYSTYPE],
|
||||
[AT_CXX_IF([AT_NAMESPACE[::parser::semantic_type]],
|
||||
[AT_API_PREFIX[STYPE]])])
|
||||
@@ -425,6 +430,7 @@ m4_popdef([AT_YYLTYPE])
|
||||
m4_popdef([AT_YYSTYPE])
|
||||
m4_popdef([AT_VAL])
|
||||
m4_popdef([AT_LOC])
|
||||
m4_popdef([AT_TOKEN])
|
||||
m4_popdef([AT_TOKEN_TRANSLATE_IF])
|
||||
m4_popdef([AT_PURE_LEX_IF])
|
||||
m4_popdef([AT_YYERROR_SEES_LOC_IF])
|
||||
|
||||
Reference in New Issue
Block a user