[antlr-interest] Failure on OpenJDK on Debian
Gavin Lambert
antlr at mirality.co.nz
Wed Apr 1 03:38:26 PDT 2009
At 09:45 1/04/2009, Ola Bini wrote:
>> Looks like your lexer rules are ambiguous (which probably
isn't
>> helped by the fact that you're also using literals in your
>> parser rules).
>> You should definitely consider correcting your rules so that
>> the ambiguity warnings go away; doing that should make the
>> error go away as well.
>>
>I don't have any ambiguity warnings on any other Java
>implementation.
Perhaps not, but it's still suggestive. If your rules aren't
fully left-factored then ANTLR often can work out the right thing
to do, but it'll be slower than if they were factored properly --
and every once in a while you'll get a "surprise" when you change
some other part of the grammar :)
So if that particular runtime executes slower than other variants,
it might be hitting the timeout on that version but just barely
squeaking through on others.
More information about the antlr-interest
mailing list