[antlr-interest] Understanding lookahead
Terence Parr
parrt at cs.usfca.edu
Sun Jun 17 17:16:54 PDT 2007
On Jun 18, 2007, at 9:01 AM, Oliver Zeigermann wrote:
> Hmm. Right.
>
> I tried
>
> options {
> backtrack=true;
> }
>
> which I was hoping would introduce backtracking which should have made
> your example work. Indeed, that option inserted some code, but IMHO
> totally meaningless and without effect.
>
> Maybe this does not work for the lexer?
I've never tried it in the lexer...I'd suggest avoiding it even if it
works. ;)
Ter
More information about the antlr-interest
mailing list