Compile Time D Expression Parser?

Timon Gehr timon.gehr at gmx.ch
Sun Feb 26 04:46:45 PST 2012


On 02/26/2012 01:00 PM, d coder wrote:
>
>     Operator precedence parsers are simple to implement:
>
>     http://effbot.org/zone/simple-__top-down-parsing.htm
>     <http://effbot.org/zone/simple-top-down-parsing.htm>
>
>
> Timon
>
> I want to do all this parsing at compile time in D (using mixins). I
> have just started working on this. I am not sure if CTFE allows so much
> flexibility. I believe I will have to use functional style as in the
> link provided by Kenji. Let me know if I am missing something.
>
> Regards
> - Puneet

I know. CTFE is flexible enough and implementing this would be quite 
simple. However, if ctpg serves your needs well, just use that.


More information about the Digitalmars-d mailing list