[antlr-interest] workaround for: ANTLR 3(ea8) TreeNodeStream DOWN & UP insertion question.

Terence Parr parrt at cs.usfca.edu
Mon May 22 14:00:26 PDT 2006


On May 22, 2006, at 12:07 PM, Anthony Harrison wrote:
> that only has optional children. Specifically, something like ^(ROOT
> OPTIONAL_CHILD*) will throw mismatches when no children are present

You can alter ^(A B*) to ( ^(A B+) | A ) I believe.

Ter




More information about the antlr-interest mailing list