mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
Test token.prefix in all the skeletons.
* data/java.m4 (b4_token_enum): Use the token.prefix. * tests/local.at (AT_BISON_OPTION_PUSHDEFS): Define AT_TOKEN_PREFIX. * tests/calc.at (_AT_DATA_CALC_Y): Use it. Add checks for yacc.c, glr.c, lalr1.cc and glr.cc. * tests/java.at: Comment changes. (AT_CHECK_JAVA_MINIMAL): Define the END token. (Java parser class and package names): Add token.prefix check.
This commit is contained in:
@@ -147,7 +147,7 @@ m4_define([b4_integral_parser_table_define],
|
||||
# Output the definition of this token as an enum.
|
||||
m4_define([b4_token_enum],
|
||||
[ /** Token number, to be returned by the scanner. */
|
||||
static final int $1 = $2;
|
||||
static final int b4_percent_define_get([token.prefix])$1 = $2;
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user