DIP 50 - AST macros

Martin Nowak code at dawg.eu
Wed Nov 13 14:29:06 PST 2013


> //this would invoke compiler's parser at CTFE
> auto ast = "x = y;".astof
> ast.toString() //get back a string of D code
>
Right, that's the basic functionality we want.
What's not clear is how to get the type of y.


More information about the Digitalmars-d mailing list