Is anyone working on a D source code formatting tool?

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 11 11:32:04 PST 2015


On 2015-01-11 20:20, Walter Bright wrote:

> Ddoc makes use of semantic info, not just an AST. For semantic info, you
> pretty much need a real compiler.

I've been thinking of that the last couple of days. It should be pretty 
straightforward to copy-paste the driver part of DMD, i.e the part 
contains the main function and handling of the command line arguments. 
Then remove everything that's not needed for Ddoc.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list