[antlr-interest] Upgrade a token/AST from inside the parser.

Anthony Youngman Anthony.Youngman at eca-international.com
Tue Nov 22 03:48:48 PST 2005


ALL databases?

Sorry for jumping on my hobbyhorse, but from your other messages, you
seem to be assuming that columns and tables are universals. They are NOT
:-)

Cheers,
Wol

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jan H. van der
Ven
Sent: 16 November 2005 15:26
To: antlr-interest at antlr.org
Subject: [antlr-interest] Upgrade a token/AST from inside the parser.

Hi,


I am currently working on a SQL parser (we want to support all
databases,
but I am taking baby steps). I used the MS SQL select statement from
Tomasz Jastrzebski that can be downloaded from antlr.org. It checks my
statements ok, but that is not the only result I am looking for.

What I want is that after the parsing the tokens contain extra
information
about their syntactic nature. For instance, the parser will find out
that
a certain 'identifier' is actually a column and I would like that
knowledge to become part of the token or the AST.

I am new to all of this, so if this is something you guys do all day
please let me know.

If it is not, could you point me in the right direction.


Kind regards,


Jan van der Ven


* ************************************************************************ *

This transmission is intended for the named recipient only. It may contain private and confidential information. If this has come to you in error you must not act on anything disclosed in it, nor must you copy it, modify it, disseminate it in any way, or show it to anyone. Please e-mail the sender to inform us of the transmission error or telephone ECA International immediately and delete the e-mail from your information system.

Telephone numbers for ECA International offices are: Sydney +61 (0)2 8272 5300, Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582 2333.

* ************************************************************************ *



More information about the antlr-interest mailing list