On 02/01/2013 04:54 PM, Jacob Carlborg wrote:
On 2013-02-01 16:36, Timon Gehr wrote:

Analysis and rewriting.

I'm just thinking an API similar to a reflection API. Something like:

Ast!(Class) c;

foreach (Ast!(Member) m ; c.members)
{
     // do something with each member
}


Yes, that will work, as long as all necessary information is exposed.

Sure it would be easier and better looking with pattern matching.


I take it you mean syntax sugar for pattern matching? AST macros have failed if they do not allow a decent library implementation of such functionality. :)

Reply via email to