Abstract syntax tree manipulation

Jacob Carlborg doob at me.com
Sun Apr 21 13:06:54 PDT 2013


On 2013-04-21 12:36, Belzurix wrote:

> Hi!
>
> As far as I can remember, macros have been deferred to D3 because it has
> mixins and templates, so one can easily manipulate code in D. However,
> it's been long time since there was serious discussion about the
> implementation details. I'm happy to see that the topic emerged again
> just before DConf - maybe the discussion will continue there.
> Several non-lispy languages introduced macros long ago so the developers
> may learn from others mistakes and they will avoid the pitfalls. These
> languages include Groovy,
> Scala, Nimrod and Rust.

There's also Nemerle which lets you create new syntax for your AST macros.

http://nemerle.org/wiki/index.php?title=Macros

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list