[antlr-interest] SQL grammar, keywords that can be identifiers

Pete Forman pete.forman at westerngeco.com
Fri Jul 23 03:34:04 PDT 2004


At 2004-07-23 12:39 +0300, Ruslan Zasukhin wrote:
>So lexer returns ID,
>
>But we add one more rule to Parser
>
>   identifier : ..............

Explicitly, the lexer returns IDENTIFIER, LEFT, RIGHT, FULL, OUTER,...

One identifier rule might not be enough.  The set of keywords that are
allowed to be table names may not be the same as those for function
names and so on.

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.



 
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