[antlr-interest] Re: Newbie NonDeterminism Error

lgcraymer lgc at mail1.jpl.nasa.gov
Mon Oct 4 14:35:47 PDT 2004



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