[antlr-interest] ANTLR could not analyze...
Jim Idle
jimi at temporal-wave.com
Mon Feb 18 12:06:12 PST 2008
> -----Original Message-----
> From: Steve Bennett [mailto:stevagewp at gmail.com]
> On 2/17/08, Steve Bennett <stevagewp at gmail.com> wrote:
> > 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.
>
> ...
>
>
> > As you can see, I'm using options k=1, and no shortage of syntactic
> > predicates - what else can I do?
>
> Any response to this one? It seems to be a bug. Is there anything I
> can do about it?
I doubt it is a bug, but it is possible. Are using backtrack=true? I
think that that will be necessary for what you are parsing, as though
you could probably find ways around it, I am not sure you would end up
with anything better than backtracking with memorization in this case.
Also, give the latest snapshot a try and see if you get anything
different, just in case.
Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Jim Idle.vcf
Type: text/x-vcard
Size: 1863 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080218/f304015f/attachment.vcf
More information about the antlr-interest
mailing list