[antlr-interest] Re: Newbie NonDeterminism Error
PAQ2000
paq2000 at yahoo.com
Mon Oct 4 22:36:43 PDT 2004
Thank you for the help you guys. I did read about the literals and the
lookahead values and I actually tried a combination of both your
ideas. I set k=10 and testLiterals=true. Everything seems to work. :-)
--- In antlr-interest at yahoogroups.com, "lgcraymer" <lgc at m...> wrote:
>
> This would be true if ANTLR recognized literals individually, but
> ANTLR does not do that. What actually happens is that ANTLR
> constructs the token, then checks the literals table to see if there
> is a match. As it is, this particular match is not affected by
lookahead.
>
> More likely is that the literals option has not been set in the "ID"
> (or whatever rule).
>
> --Loring
>
>
> --- In antlr-interest at yahoogroups.com, Akhilesh Mritunjai
> <virtualaspirin at y...> wrote:
> >
> > Hi
> >
> > Have you set the lookahead to at least 5 for this case
> > ?
> >
> > If not, put "k=5;" in the options section of lexer.
> >
> > - Akhilesh
> >
> > --- PAQ2000 <paq2000 at y...> wrote:
> > > This is how my code looks:
> > >
> > > LOAD: "load";
> > > LOADI: "loadi";
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list