{DMD-AST-Tool} For beginning DDMD hackers

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 13 00:40:25 PST 2016


On Saturday, 12 November 2016 at 10:26:53 UTC, Stefan Koch wrote:
> Hi Guys,
>
> I have written a small utility called dmd-ast-tool.
> It can be used to quickly generate boilerplate code for 
> dmd-ast-visitors.
> Originally it was only written for my personal use, it used to 
> work with a handwritten text-file representing dmds ast class 
> hierarchy.
>
> However I recently updated it construct the class hierarchy 
> from ddmds source code.
>
> It is pretty bare-boned, but maybe it can be useful to some of 
> you :)
>
> https://github.com/UplinkCoder/dmd-ast-tool.

I have just added a bit of code to modify the ast-nodes.
It can also print a few stats about dmd.
For example the names of the visitors implemented in dmd.




More information about the Digitalmars-d mailing list