Lexer and parser generators using CTFE

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Feb 29 08:47:39 PST 2012


On 2/29/12 3:48 AM, Dmitry Olshansky wrote:
> Someway of stacking grammars is bonus points for the project. As Andrei
> started with lexer+parser, I see no problem with it being
> lexer+parser(+parser)*.

What does stacking grammars mean?

Anyhow, one thing that would become important is tree walkers - e.g. you 
have the tree and you define code for evaluating it etc.

> Such a framework relying on mixins is bound to produce awful error
> messages at compile-time, unless explicitly stuffed up to watterline
> with some kind of static assert(__traits(compiles,...),"Error x + info");

We need to figure out ways to make that simpler.


Andrei


More information about the Digitalmars-d mailing list