mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
d: remove the default prefix for SymbolKind's enum elements
This is not needed in D, since the kinds are "scoped". * data/skeletons/d.m4: Remove the default prefix. * doc/bison.text: Document it.
This commit is contained in:
committed by
Akim Demaille
parent
4855b98554
commit
4bbda69f1e
@@ -197,8 +197,6 @@ b4_symbol_foreach([b4_token_enum])dnl
|
|||||||
## Symbol kinds. ##
|
## Symbol kinds. ##
|
||||||
## -------------- ##
|
## -------------- ##
|
||||||
|
|
||||||
b4_percent_define_default([[api.symbol.prefix]], [[S_]])
|
|
||||||
|
|
||||||
# b4_symbol_kind(NUM)
|
# b4_symbol_kind(NUM)
|
||||||
# -------------------
|
# -------------------
|
||||||
m4_define([b4_symbol_kind],
|
m4_define([b4_symbol_kind],
|
||||||
|
|||||||
@@ -6420,7 +6420,7 @@ Any non empty string. Must be a valid identifier in the target language
|
|||||||
(typically a non empty sequence of letters, underscores, and ---not at the
|
(typically a non empty sequence of letters, underscores, and ---not at the
|
||||||
beginning--- digits).
|
beginning--- digits).
|
||||||
|
|
||||||
The empty prefix is invalid:
|
The empty prefix is (generally) invalid:
|
||||||
@itemize
|
@itemize
|
||||||
@item
|
@item
|
||||||
in C it would create collision with the @code{YYERROR} macro, and
|
in C it would create collision with the @code{YYERROR} macro, and
|
||||||
@@ -6436,7 +6436,8 @@ with other members of the @code{SymbolKind} class.
|
|||||||
|
|
||||||
|
|
||||||
@item Default Value:
|
@item Default Value:
|
||||||
@code{YYSYMBOL_} in C. @code{S_} in C++, D and Java.
|
@code{YYSYMBOL_} in C. @code{S_} in C++ and Java. The default prefix is
|
||||||
|
removed from D.
|
||||||
@item History:
|
@item History:
|
||||||
introduced in Bison 3.6.
|
introduced in Bison 3.6.
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|||||||
Reference in New Issue
Block a user