mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user