D source code formatting utility (dformat)

qznc qznc at go.to
Tue Jan 15 23:54:54 PST 2013


On Wednesday, 16 January 2013 at 07:40:24 UTC, Jacob Carlborg 
wrote:
> On 2013-01-16 00:50, 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?
>
> Now where's that lexer/parser ...

I think Dil would be a good starting point. It claims 99% of 
lexer/parser done.

https://github.com/azizk/dil


More information about the Digitalmars-d mailing list