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

@@ -162,9 +162,10 @@ m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
[::\([^][:]\|:[^:]\)*], [} ])[} // ]b4_namespace_ref])])
## -------------------------- ##
## (External) token numbers. ##
## -------------------------- ##
## ------------- ##
## Token kinds. ##
## ------------- ##
# b4_token_enums
# --------------
@@ -172,15 +173,15 @@ m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
m4_define([b4_token_enums],
[[enum yytokentype
{
]b4_symbol_foreach([b4_token_enum])[
};]dnl
]b4_symbol_foreach([b4_token_enum])dnl
[ };]dnl
])
## --------------------------- ##
## (Internal) symbol numbers. ##
## --------------------------- ##
## -------------- ##
## Symbol kinds. ##
## -------------- ##
# b4_declare_symbol_enum
# ----------------------