[antlr-interest] Resolving conflict between keyword and identifier

Terence Parr parrt at jguru.com
Sun Feb 10 22:01:30 PST 2002


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/ 



More information about the antlr-interest mailing list