Want to help DMD bugfixing? Write a simple utility.

Alexey Prokhin alexey.prokhin at yandex.ru
Thu Mar 24 00:53:32 PDT 2011


> Currently, as far as I know, there are only two lexers and two parsers for
> D: the C++ front end which dmd, gdc, and ldc use and the D front end which
> ddmd uses and which is based on the C++ front end. Both of those are under
> the GPL (which makes them useless for a lot of stuff) and both of them are
> tied to compilers. Being able to lex D code and get the list of tokens in
> a D program and being able to parse D code and get the resultant abstract
> syntax tree would be very useful for a number of programs.
There is a third one: http://code.google.com/p/dil/. The main page says that 
the lexer and the parser are fully implemented for both D1 and D2. But the 
license is also the GPL.


More information about the Digitalmars-d-learn mailing list