Getting function's AST at compile-time

Piotr Szturmaj bncrbme at jadamspam.pl
Sun Sep 15 15:59:35 PDT 2013


I'm looking for something like __traits(getAST, fn). The AST should 
represent only run-time (instantiated) code without any compile-time 
features.

How hard it would be to implement this in the frontend?

It would enable analysis of code at compile-time (without the need to 
modify the compiler).


More information about the Digitalmars-d mailing list