Abstract syntax tree manipulation

Tofu Ninja emmons0 at purdue.edu
Fri Jan 24 02:20:42 PST 2014


On Sunday, 21 April 2013 at 10:13:43 UTC, Jacob Carlborg wrote:
> On 2013-04-21 09:57, Suminda Dharmasena wrote:
>> Hi,
>>
>> Since macro is reserved perhaps D can introduce AST 
>> manipulating macros.
>>
>> Suminda
>
> The original idea with the "macro" keyword was to introduce AST 
> macros. Although nothing has happened yet. People have been 
> talking about it from time to time but no one has had a real 
> proposal.
>
> I've got this: 
> https://dl.dropboxusercontent.com/u/18386187/ast_macros.html
>
> But I haven't turned it into a DIP (D Improvement Proposal) yet.

This is amazing, its not 100% perfect but it hits all the main 
things I want out of a macro system. How long ago did you come up 
with this?


More information about the Digitalmars-d mailing list