[antlr-interest] Resolving conflict between keyword and identifier

SAGAR BIYANI sagarbiyani at yahoo.com
Mon Feb 11 00:47:08 PST 2002


Hi Terence,
    I have tried on both 2.7.1 and 2.7.2a2 version.
But ANTLR generates wrong code in the parsers (starts
ignoring predicates).
    Any help on this will be appreciated.

-Sagar

--- SAGAR BIYANI <sagarbiyani at yahoo.com> wrote:
> I am using version 2.7.1. Is that a bug in 2.7.1
> version. I haven't tried on 2.7.2a2.
> 
> -Sagar
> 
> --- Terence Parr <parrt at jguru.com> wrote:
> > 
> > On Sunday, February 10, 2002, at 07:40  PM, SAGAR
> > BIYANI wrote:
> > 
> > > Hi,
> > >
> > > I am writing grammar for SQL. Trying to resolve
> > > conflict between keyword and identifier through
> > the
> > > following rules:
> > >
> > > keyword: "access" |"admin" ... ;
> > >
> > > id: ID |keyword;
> > >
> > > The above rule works only if the keywords
> defined
> > in
> > > the keyword rule is less. If it exceeds above
> > certain
> > > limit(approx 100), ANTLR generates wrong code in
> > the
> > > parsers (starts ignoring predicates) and hence
> the
> > > whole thing is not working. Anybody know how to
> > > resolve this problem?
> > 
> > antlr 2.7.1 or 2.7.2a2?
> > 
> > Ter
> > 
> > 
> >  
> > 
> > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/ 
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
>  
> 
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/ 
> 
> 


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list