[antlr-interest] Parsing optional component in Tree Walker

Monty Zukowski monty at codetransform.com
Mon Apr 11 12:29:33 PDT 2005


On Apr 11, 2005, at 12:24 PM, Bryan Ewbank wrote:

> What's wrong with doing what you said - an optional component:
>
>    #(ROOT A B
>       ( C
>          { ... handleAB (...) }
>       | /* empty */
>          { ... handleAB (... true); }
>       )
>    )
>
That makes the most sense to me.

Monty



More information about the antlr-interest mailing list