[antlr-interest] Ambiguities in ANTLR's web Java grammar

Cristian Peraferrer corellian.c at gmail.com
Thu Oct 25 08:31:34 PDT 2007


I find that with backtrack & memoize deactivated, the "if-else" of the
grammar it doesn't work, why?

2007/10/25, Cristian Peraferrer <corellian.c at gmail.com>:
>
> Ok, it is clear for me now. Thanks!
>
> Another question: how I can fix the floating point numbers recognition? I
> tried to isolate the floats lexer part, and it doesn't work.
>
> 2007/10/25, Alexandre Porcelli < porcelli at uol.com.br>:
> >
> > The "if-else" structure always generates ambiguities warnings but the
> > default ANTLR behavior automatically "recover" this problem (for more
> > information check the ANTLR Terence Book).
> > Resume: Same ambiguities you can just discard (ie: "if-else").
> >
> > On 10/25/07, Cristian Peraferrer < corellian.c at gmail.com> wrote:
> > > Hi,
> > >
> > > I've found that the Java.g grammar file, doesn't work, as it has a
> > couple of
> > > ambiguities, starting from the basic "if-else" statements.
> > >
> > > My question is, for example, how it can be the "if-else" ambiguity
> > fixed?
> > >
> > > Please I need some help on this, so anyways the Java grammar posted in
> > the
> > > web needs to be fixed somehow.
> > >
> > >
> > > Regards,
> > >
> > > Cris
> > >
> > > --
> > > GPG Key-ID: 0x564903FA - JID: corellian at swissjabber.ch
> >
>
>
>
> --
> GPG Key-ID: 0x564903FA - JID: corellian at swissjabber.ch
>



-- 
GPG Key-ID: 0x564903FA - JID: corellian at swissjabber.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071025/4caa1919/attachment-0001.html 


More information about the antlr-interest mailing list