[antlr-interest] Why is the parser trying to match the wrong rule?
Jonas Tampier
jonas+antlr at pmhost.de
Wed Jul 18 09:00:53 PDT 2007
Thank you foor the quick response.
Sadly neither your suggestion nor additionally replacing all occurences
of DIGIT by number yields another result as the one described earlier.
Jonas Tampier
Loring Craymer wrote:
> I suspect that NUMBER hides DIGIT and that '2' is read
> as a NUMBER and so does not parse as part of a day.
>
> Try
> NUMBER : DIGIT (DIGIT)+ ;
> and replacing occurrences of NUMBER with
> number : DIGIT | NUMBER ;
>
> --Loring
>
>
More information about the antlr-interest
mailing list