tests: dispatch per lang on the definition of yylex

* tests/local.at (AT_YYLEX_DEFINE): Dispatch on the language.
(AT_YYLEX_DEFINE(java)): New.
* tests/conflicts.at, tests/java.at: Use it.
This commit is contained in:
Akim Demaille
2019-02-19 20:37:29 +01:00
parent 420e7b03ec
commit 7d6747cec9
3 changed files with 58 additions and 45 deletions

View File

@@ -154,14 +154,11 @@ AT_LOCATION_IF([[
else
return st.ttype;
}
]AT_LEXPARAM_IF([[
};
%%]], [[
}]])
}]])[
[
class Position {
public int line;
public int token;
@@ -198,8 +195,8 @@ class Position {
return token;
}
}
]])
AT_BISON_OPTION_POPDEFS
])# _AT_DATA_JAVA_CALC_Y