[antlr-interest] preserving epsilon derivations when building trees

Mark Snyder marklsnyder at gmail.com
Mon Nov 12 08:29:46 PST 2007


Thanks, I had thought of this; however,
this robs me of convenient *,+,? operators
and thereby explodes my grammar ;-(.

On Nov 12, 2007 5:21 PM, Michael LeBlanc <Mike at leblanc-engineering.com>
wrote:

> Replace, for example, 'static'? by
>
>   staticOrEmpty : 'static' | -> EMPTY ;
>
> Add EMPTY to your tokens {}.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071112/598858ed/attachment.html 


More information about the antlr-interest mailing list