On 2014-06-07 00:40, Brian Schott wrote:
On Friday, 6 June 2014 at 22:25:16 UTC, Tom Browder via Digitalmars-d
wrote:
Now I'm confused--the three files I've found have differences in
production rules--it  looks like I'll have to look at what the
compiler is actually doing--I'm putting that off for a while unless
someone has another idea .

Use the HTML version. I haven't updated the ANTLR one in a while. (You
may not have noticed the line in the readme that says "The file that
you're probably looking for is grammar.html.")

Right now there are four parsers for D:

Mine, which is used by DCD and D-Scanner:
https://github.com/Hackerpilot/Dscanner/blob/master/std/d/

DParser2, which powers Mono-D:
https://github.com/aBothe/D_Parser/tree/master/DParser2/Parser

LibD which is used by SDC:
https://github.com/deadalnix/libd/tree/master/src/d/parser

The DMD front-end which is used by DMD, LDC, and GDC:
https://github.com/D-Programming-Language/dmd/blob/master/src/parse.c

There's DIL [1] as well.

[1] https://github.com/azizk/dil

--
/Jacob Carlborg

Reply via email to