[antlr-interest] ANTLR could not analyze this decision in rule Tokens
Loring Craymer
lgcraymer at yahoo.com
Fri Mar 30 16:18:09 PDT 2007
Don't apologize for "noise"; instead, you should see
this as useful input that the error message can be
improved by adding a second alternative ("try
adjusting the conversion timeout
(-Xconversiontimeout)".
Error messages are almost impossible to get right the
first time, and few ever complain about them.
--Loring
--- David Holroyd <dave at badgers-in-foil.co.uk> wrote:
> On Fri, Mar 30, 2007 at 10:05:26PM +0000, David
> Holroyd wrote:
> > So, I tried reinstating the support for unicode
> identifiers which I've
> > been working on in my grammar, and the
> antlr-03-30-2007.14 build gives
> > the following warning:
> >
> > warning(205):
> org/asdt/core/internal/antlr/AS3.g3:1:10: ANTLR
> could
> > not analyze this decision in rule Tokens; often
> this is because of
> > recursive rule references visible from the left
> edge of alternatives.
> > ANTLR will re-analyze the decision with a fixed
> lookahead of k=1.
> > Consider using "options {k=1;}" for that
> decision and possibly adding
> > a syntactic predicate.
>
> Ah! So this is what '-Xconversiontimeout' is for :)
>
> Adding -Xconversiontimeout 60000 to the ANTLR
> command-line options lets
> it get there in the end.
>
> Sorry for the noise.
> ta,
> dave
>
> --
> http://david.holroyd.me.uk/
>
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
More information about the antlr-interest
mailing list