Question from Bison's maintainer on the D backend

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Nov 21 23:38:46 UTC 2018


On Sun, Nov 18, 2018 at 10:56:47AM -0500, Andrei Alexandrescu via Digitalmars-d wrote:
> Hello, Akim Demaille, the maintainer of the famed GNU Bison parser
> generator, reached out to me with the following (published with his
> accord):
> 
> ====
> I’m the maintainer of GNU Bison, which is a parser generator for C/C++
> and Java.  A few years ago someone contributed a D backend for Bison,
> but at that time, the investment in Bison was low.  Now I’m spending
> time on it, and Richard Stallman asked me to contact the « D community
> » to know whether there would be interest for such a backend.
[...]

Yes, I'm interested!  It has been a while since I needed to use bison,
but being able to generate D code from bison would be great for my DSL
projects.

The quality of the generated D code, though, is a tricky question.
Ideally, it should generate an API idiomatic to D, but from what I
remember of bison's generated API, it probably doesn't lend itself very
well to template-heavy range-based code that typical D code would
expect.


T

-- 
Some ideas are so stupid that only intellectuals could believe them. -- George Orwell


More information about the Digitalmars-d mailing list