On Tue, 03 Mar 2015 12:35:44 -0800, Walter Bright wrote:

> On 2/19/2015 6:21 PM, Brian Schott wrote:
>> dfmt is a D source code formatting tool.
>>
>> https://github.com/Hackerpilot/dfmt/
>> https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.0
> 
> Thanks for doing this. It's an important part of the D toolchain we need
> to have. At some point I want to merge it into the official release.
> 
> I noticed it is remarkably small (1400 lines). What is its algorithm?
> How does it compare with gofmt and clang-format in how it works?

i bet dfmt parses the source and then regenerates it from scratch using 
AST it built. with all the work Brian put into his D parsing libraries, 
the main driver can be relatively small, i think.

Attachment: signature.asc
Description: PGP signature

    • Re: dfmt 0.1.0 ketmar via Digitalmars-d-announce
  • Re: dfmt 0.1.0 ketmar via Digitalmars-d-announce

Reply via email to