Lexer and parser generators using CTFE

Philippe Sigaud philippe.sigaud at gmail.com
Thu Mar 1 09:21:04 PST 2012


> > But how to associate actions with a rule, in that case? I mean, some
> > rules will have actions, some not.
>
> You could maybe just put D code in the grammar string, which gets
> compiled as a string mixin by CTFE?

I could, but one of my driving goals while beginning this project a month
ao was to use the shiny new lambda syntax directly :)

"rule1", o => o
"rule2", o => o

etc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120301/415840a9/attachment.html>


More information about the Digitalmars-d mailing list