[antlr-interest] SQL grammar, keywords that can be identifiers
Monty Zukowski
monty at codetransform.com
Fri Jul 23 07:40:23 PDT 2004
On Jul 23, 2004, at 3:50 AM, Ruslan Zasukhin wrote:
> But in general problem is complex.
> By SQL92 standard
>
> ANY KEYWORD can be used as name of table or field or function.
>
> It looks your adivce can resolve only that 2 examples which I have
> show.
> But geenral task is more hard.
>
> Any ideas now ?
Read through my parser filter example.
http://www.codetransform.com/filterexample.html If you can recognize
the syntax for a table name, field or function generically then you
could have a filter that changed the tokens back into identifiers. For
instance if you see a keyword followed by a left paren then you know it
is a function, so make it an identifier.
Monty
ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit --
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html
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