[antlr-interest] Why and how exactly does ANTLR manage to fail on non recursive grammar for finite language?
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Wed Aug 12 15:49:48 PDT 2009
Loring Craymer wrote:
> Not true; your example can be interpreted either as
>
> (expr1: PREFIX_1 (expr2: PREFIX_2 SUFFIX) SUFFIX )
>
> or as
>
> (expr1: PREFIX_1 (expr2: PREFIX_2) SUFFIX) SUFFIX
>
> with the extra SUFFIX belonging to something else
So, hazarding a guess, would it be okay if expr was EOF-terminated?
--
Sam Barnett-Cormack
More information about the antlr-interest
mailing list