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:
Akim Demaille
2020-04-05 11:14:11 +02:00
parent 2c05fc750a
commit ff2fc62138
6 changed files with 55 additions and 55 deletions

View File

@@ -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];
}