[antlr-interest] Local backtracking

Terence Parr parrt at cs.usfca.edu
Fri Dec 14 10:50:20 PST 2007


The backtrack option should apply to all decisions in a rule...you  
might try on the offending subrule, however.

( options {...} : ...)

Ter
On Dec 14, 2007, at 10:43 AM, Johannes Luber wrote:

> Hi!
>
> I'm wondering how one does determine which rules have to receive
> "options {backtrack=true;}" so the warning regarding non-LL(*)  
> vanishes.
> Applying it to the marked rule alone doesn't work and making it global
> because of one rule alone I can't give a predicate (because I  
> believe it
> would exclude valid token streams, too) seems too much.
>
> Johannes



More information about the antlr-interest mailing list