[antlr-interest] syntactic predicate question

Terence Parr parrt at cs.usfca.edu
Tue May 15 16:27:14 PDT 2007


On May 15, 2007, at 3:48 PM, damarcus Leacock wrote:
> sexpr
>   :  Literal {/* do something */}
>   |  ( Literal DOT^ ) => Literal DOT expr {/* do something else */}
>   ;
>

  change the order of the alternatives. :)  The first alternative  
that wins, matches.

Ter



More information about the antlr-interest mailing list