tokens: style: minor fixes

* data/skeletons/bison.m4 (b4_symbol_kind): Dispatch on the UNDEF
token number rather than its name.
* data/skeletons/c++.m4, data/skeletons/c.m4, data/skeletons/java.m4:
Comment changes.
This commit is contained in:
Akim Demaille
2020-04-12 07:30:10 +02:00
parent e78596955d
commit 07726f1178
4 changed files with 24 additions and 22 deletions

View File

@@ -128,9 +128,10 @@ m4_define([b4_integral_parser_table_define],
[b4_typed_parser_table_define([b4_int_type_for([$2])], [$1], [$2], [$3])])
## -------------------------- ##
## (External) token numbers. ##
## -------------------------- ##
## ------------- ##
## Token kinds. ##
## ------------- ##
# b4_token_enum(TOKEN-NUM)
# ------------------------
@@ -144,14 +145,14 @@ m4_define([b4_token_enum],
# --------------
# Output the definition of the tokens (if there are) as enums.
m4_define([b4_token_enums],
[b4_any_token_visible_if([/* Token kinds. */
[b4_any_token_visible_if([ /* Token kinds. */
b4_symbol_foreach([b4_token_enum])])])
## --------------------------- ##
## (Internal) symbol numbers. ##
## --------------------------- ##
## -------------- ##
## Symbol kinds. ##
## -------------- ##
# b4_symbol_enum(SYMBOL-NUM)
# --------------------------