dmd Lexer and Parser in D
Jonathan M Davis
jmdavisProg at gmx.com
Sat Feb 4 13:56:50 PST 2012
On Saturday, February 04, 2012 23:52:46 Daniel Murphy wrote:
> On a related note, how much interest is there around here in having an
> official version of dmd written in D?
> There are two ways I can imagine this actually happening:
> - Improve D's ability to link with C++
> - Make D bindings out of the header files
> - Port code to D incrementally
> - Dify the C++ source (no classes on the stack/embedded, no bitfields, etc)
> - Fix all #ifdefs that break up expressions so they can be turned into
> - Create a conversion program to turn it into D ('->' -> '.', (type) ->
> cast(type) etc)
> Just something to think about for the distant future.
The intention is to have a lexer and parser for D in Phobos at some point, but
I don't know how much we gain by having the whole compiler in D. It's not a
bad idea in the least, and it would be a great project for someone to tackle,
but of all of the things that a contributor could be doing, I'm not sure that
that's really all that high on the list as far as value goes.
- Jonathan M Davis
More information about the Digitalmars-d