D Grammar in BNF Text Form?

Tom Browder via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 7 06:55:11 PDT 2014


On Sat, Jun 7, 2014 at 6:41 AM, Tom Browder <tom.browder at gmail.com> wrote:
...
> So the description in grammar.html is the official grammar
> specification for the stable dmd compiler.  Is there a plain text
> version somewhere?

Okay, now I see that page source is:

  https://github.com/D-Programming-Language/dlang.org/edit/master/grammar.dd

and it is a Ddoc document ource file.

According to what little I know, that is THE source document which
could be used to generate input formats for various parsers.  Is such
a filter available?  If not, would such a filter for that be useful?

-Tom


More information about the Digitalmars-d mailing list