<div class="gmail_quote">On Fri, Jun 1, 2012 at 7:38 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com" target="_blank">jmdavisProg@gmx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Friday, June 01, 2012 17:57:51 d coder wrote:<br>
> Greetings<br>
><br>
> I know there is a plan for D to have AST macros eventually. I wanted to<br>
> know if it is a feature being worked upon at this point of time.<br>
> Approximately how long it would be before AST Macros see the light of the<br>
> day in D?<br>
><br>
> I know D is an opensource project and I am not trying to put any pressure<br>
> here. I am just curious because I think D is a great language for creating<br>
> DSL's and having AST Macros will make a big difference.<br>
<br>
</div></div>There was talk of doing AST macros quite while back, but it was decided not to<br>
add them to D2. They may or may not ever be revisited. This page isn't<br>
necessarily completely up-to-date (<br>
<a href="http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel" target="_blank">http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel</a> ), but it specifically lists 2<br>
things as deferred to D3.0:<br>
<br>
* AST macros.<br>
* Bartosz Milewski's race-free type system.<br>
<br>
String mixins should be powerful enough in most, if not all, cases. It's been<br>
shown that it's quite possible to create DSLs as strings with whatever syntax<br>
you want and have them compiled to D code (Philippe Segaud put together a<br>
really cool library for generating PEGs:<br>
<a href="https://github.com/PhilippeSigaud/Pegged/wiki" target="_blank">https://github.com/PhilippeSigaud/Pegged/wiki</a> ).<br>
<br>
We _may_ see AST macros added to the language in the distant future, but it's<br>
not happening anytime soon.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br>Where can I read moreĀ about Bartosz's race-free type system and if there are some specific ideas already, AST macros for D as well?<br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>