Era Scarecrow schrieb:
Recently i've started reading about lex and yacc (or flex and bison) and as a comment in there, it wouldn't be too hard to use substitution and have a pre-processor convert it into pure D code.
and the name of that pre-processor is "mixin" in D, you can parse and generate code in here :-)