[antlr-interest] Missing characters in partial matches

Thomas Brandon tbrandonau at gmail.com
Sat Aug 23 05:05:23 PDT 2008


On Sat, Aug 23, 2008 at 9:04 PM, Gavin Lambert <antlr at mirality.co.nz> wrote:
> At 17:14 23/08/2008, Thomas Brandon wrote:
> (When I say "the lexer can act like it's LL(1)", I don't really mean that
> it's LL(1) all the time, just that you need to be aware that it tries to use
> the minimum amount of lookahead that it thinks it can get away with, which
> is often only a single character -- and not always sufficient to completely
> disambiguate, especially when loops and optional paths are involved.)
>
>
My point was that the known issue only affects choosing between
multiple token sequences. Any other cases where it insufficiently
disambiguates between multiple single token alternates, no matter how
many loops or optional paths you have, are an additional issue and
should be reported as such. I'm not aware of any other cases where
lookahead is insufficient.

Tom.


More information about the antlr-interest mailing list