On Tuesday, 15 January 2013 at 23:50:12 UTC, Walter Bright wrote:
Continuing in the vein of the Exceptional coding style thread,
D needs (and has needed for a long time) a utility that will
reformat source code.
One use of it would be to run as a filter on all of the
Druntime and Phobos source code before checkin.
This could make great use of the current projects to implement
a D lexer and parser in D.
It'd make for a nice boon to the D community.
Any champions for this?
Uncrustify[1] had a release on the first of this month which I'm
sure includes the fix I made to the parser to recognize the =>
lamba syntax. It may be easier to just use that instead of making
our own. (I haven't tested to see what it does with user-defined
attributes yet)
On the other hand, if we need a utility written in D, I'd like to
finish work on my lexer so that it can be phobos-quality first.
[1] http://sourceforge.net/projects/uncrustify/