[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for Dlang support] d: remove the default prefix for
From: |
Adela Vais |
Subject: |
[PATCH for Dlang support] d: remove the default prefix for |
Date: |
Thu, 1 Oct 2020 20:05:00 +0300 |
SymbolKind's enum elements
* data/skeletons/d.m4: Remove the default prefix.
* doc/bison.text: Document it.
---
data/skeletons/d.m4 | 2 --
doc/bison.texi | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/data/skeletons/d.m4 b/data/skeletons/d.m4
index fb883df8..704de450 100644
--- a/data/skeletons/d.m4
+++ b/data/skeletons/d.m4
@@ -197,8 +197,6 @@ b4_symbol_foreach([b4_token_enum])dnl
## Symbol kinds. ##
## -------------- ##
-b4_percent_define_default([[api.symbol.prefix]], [[S_]])
-
# b4_symbol_kind(NUM)
# -------------------
m4_define([b4_symbol_kind],
diff --git a/doc/bison.texi b/doc/bison.texi
index 7e4b9aa7..4903855c 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -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
beginning--- digits).
-The empty prefix is invalid:
+The empty prefix is (generally) invalid:
@itemize
@item
in C it would create collision with the @code{YYERROR} macro, and
@@ -6436,7 +6436,7 @@ with other members of the @code{SymbolKind} class.
@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:
introduced in Bison 3.6.
@end itemize
--
2.17.1
- [PATCH for Dlang support] d: remove the default prefix for,
Adela Vais <=