mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
d, java: rename SymbolType as SymbolKind
See https://lists.gnu.org/r/bison-patches/2020-04/msg00031.html. * data/skeletons/d.m4, data/skeletons/lalr1.d, * data/skeletons/java.m4, data/skeletons/lalr1.java (SymbolType): Rename as... (SymbolKind): this. Adjust dependencies.
This commit is contained in:
@@ -167,7 +167,7 @@ m4_define([b4_symbol_enum],
|
||||
# ----------------------
|
||||
# The definition of the symbol internal numbers as an enum.
|
||||
m4_define([b4_declare_symbol_enum],
|
||||
[[ public enum SymbolType
|
||||
[[ public enum SymbolKind
|
||||
{
|
||||
]m4_join([,
|
||||
],
|
||||
@@ -176,16 +176,16 @@ m4_define([b4_declare_symbol_enum],
|
||||
|
||||
private final int code_;
|
||||
|
||||
SymbolType (int n) {
|
||||
SymbolKind (int n) {
|
||||
this.code_ = n;
|
||||
}
|
||||
|
||||
private static final SymbolType[] values_ = {
|
||||
private static final SymbolKind[] values_ = {
|
||||
]m4_map_args_sep([b4_symbol_sid(], [)], [,
|
||||
], b4_symbol_numbers)[
|
||||
};
|
||||
|
||||
static final SymbolType get (int code) {
|
||||
static final SymbolKind get (int code) {
|
||||
return values_[code];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user