[antlr-interest] Resolving conflict between keyword and identifier

SAGAR BIYANI sagarbiyani at yahoo.com
Sun Feb 10 19:40:57 PST 2002


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? 

Thanks in advance.


Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!


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

More information about the antlr-interest mailing list