BNF grammar for D?
Aziz K.
aziz.koeksal at gmail.com
Fri Oct 12 06:11:16 PDT 2012
Hi,
I can give you three options to choose from.
There's the official grammar (don't know what the form is called):
http://dlang.org/declaration.html
A Parser Expression Grammar (PEG):
https://github.com/PhilippeSigaud/Pegged/blob/master/pegged/examples/dparser.d
The source code comments in my project using a pseudo-BNF format. They
shouldn't be too hard to decipher, but keep in mind that they're not 100%
complete and exact:
http://dl.dropbox.com/u/17101773/next/2/dil/doc/dil.parser.Parser.html#Parser.parseModuleDecl
--
My D Compiler: http://code.google.com/p/dil
More information about the Digitalmars-d
mailing list