On 3/12/2012 11:17 AM, Alix Pexton wrote:
On 11/03/2012 16:49, Philippe Sigaud wrote:
Hello,

I'm looking for a D grammar in (E)BNF form. Did any of you write
something like that or do you think I can use the grammar parts on
dlang.org?


I remember different threads on this subject and saw the docs being
updated regularly on github, but my google-fu is weak today.


Rainer Schuetze pulled all the grammar out of the docs and fixed them up
a while back as part of his work on Visual D. Its not in straight EBNF
and it may not be 100% up to date, but it may be a good place to start.

http://www.dsource.org/projects/visuald/wiki/GrammarComparison

I hope that is of some use!

A...

There is also a script to generate the grammar text file here:

http://www.dsource.org/projects/visuald/browser/grammar

I have not run it lately, though.

Reply via email to