[antlr-interest] ANTLR could not analyze this decision in rule Tokens

David Holroyd dave at badgers-in-foil.co.uk
Fri Mar 30 16:10:14 PDT 2007

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.


More information about the antlr-interest mailing list