dfmt 0.1.0

ketmar via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Mar 3 16:03:15 PST 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20150304/50a7bbaf/attachment.sig>


More information about the Digitalmars-d-announce mailing list