tests: dispatch per lang on AT_DATA_GRAMMAR

* tests/java.at: Do that.
* tests/conflicts.at: Simplify.

* tests/actions.at, tests/c++.at, tests/input.at, tests/local.at,
* tests/named-refs.at:
Use AT_BISON_OPTION_PUSHDEFS/AT_BISON_OPTION_POPDEFS.
This commit is contained in:
Akim Demaille
2019-02-19 21:08:40 +01:00
parent 7d6747cec9
commit 948f3decb4
7 changed files with 70 additions and 8 deletions

View File

@@ -100,6 +100,7 @@ AT_CLEANUP
AT_SETUP([Token declaration order: literals vs. identifiers])
AT_BISON_OPTION_PUSHDEFS
AT_DATA_GRAMMAR([[input.y]],
[[%token 'a' 'b' C D
%token E F 'g' 'h'
@@ -171,6 +172,7 @@ AT_CHECK([[cat input.output | sed -n '/^State 0$/,/^State 1$/p']], 0,
State 1
]])
AT_BISON_OPTION_POPDEFS
AT_CLEANUP
@@ -404,7 +406,7 @@ AT_SETUP([[parse.error=verbose and consistent errors: ]$1])
AT_BISON_OPTION_PUSHDEFS([$1 AT_CXX_IF([[%defines]], [[%define api.pure]])])
AT_JAVA_IF([AT_DATA], [AT_DATA_GRAMMAR])([input.y],
AT_DATA_GRAMMAR([input.y],
[AT_JAVA_IF([[
%code imports {