diff options
author | Adela Vais <adela.vais99@gmail.com> | 2022-09-19 19:09:20 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2022-09-20 07:07:12 +0200 |
commit | 0faf3719926defc459c10b0a8d04d6a29c47a53f (patch) | |
tree | 058bc52da60dedf8fdd6d714847e5a486890e9ed | |
parent | be4528096ec05f0d58bd9ff53a293e1ec3193a85 (diff) | |
download | bison-0faf3719926defc459c10b0a8d04d6a29c47a53f.tar.gz |
d: fix syntax error on SymbolKind.toString method
Reported by ledaniel2.
<https://github.com/akimd/bison/issues/88>
* data/skeletons/d.m4: Here.
-rw-r--r-- | data/skeletons/d.m4 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/data/skeletons/d.m4 b/data/skeletons/d.m4 index 9354b0fe..e82f87e5 100644 --- a/data/skeletons/d.m4 +++ b/data/skeletons/d.m4 @@ -284,8 +284,7 @@ m4_define([b4_declare_symbol_enum], that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. */ - final void toString(W)(W sink) const - if (isOutputRange!(W, char)) + final void toString(void delegate(const(char)[]) sink) const { immutable string[] yy_sname = @{ ]b4_symbol_names[ @@ -296,7 +295,7 @@ m4_define([b4_declare_symbol_enum], ]b4_translatable[ @};]])[ - put(sink, yy_sname[yycode_]); + sink.formattedWrite!"%s"(yy_sname[yycode_]); } } ]]) |