Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51739 invoked from network); 26 Dec 2005 16:27:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Dec 2005 16:27:44 -0000 Received: (qmail 86968 invoked by uid 500); 26 Dec 2005 16:27:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86927 invoked by uid 500); 26 Dec 2005 16:27:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Delivered-To: moderator for derby-dev@db.apache.org Received: (qmail 4818 invoked by uid 99); 26 Dec 2005 12:43:28 -0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_IMAGE_ONLY_12,HTML_MESSAGE,HTML_SHORT_LINK_IMG_1,MSGID_FROM_MTA_HEADER X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Date: 26 Dec 2005 12:42:57 -0000 Message-ID: <20051226124257.16264.qmail@webmail57.rediffmail.com> MIME-Version: 1.0 From: "Ashwin Jayaprakash" Reply-To: "Ashwin Jayaprakash" To: derby-user@db.apache.org, derby-dev@db.apache.org Cc: "ashwinjay" Subject: Derby-SQL: Syntax Tree generator? Content-type: multipart/alternative; boundary="Next_1135600977---0-202.54.124.203-16244" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multipart mime message --Next_1135600977---0-202.54.124.203-16244 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,=0ADoes anybody know if there is a way to parse and view the AST for an = SQL Query in Derby? I looked at the sqlparser.jj in the source code, but co= uldn't find a way to start it and parse a query without hacking into all th= e code.=0A=0ASome thing like this one: http://www.experlog.com/gibello/zql/= ?=0A=0AI am especially interested in extending the SQL grammar a little bi= t by adding a few keywords and re-writing some queries issued by the user. = So, some kind of a Visitor-pattern would be nice.=0A=0AThanks,=0AAshwin (w= ww.JavaForU.com).=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A=0A --Next_1135600977---0-202.54.124.203-16244 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0AHi,
=0ADoes anybody know if there is a way to parse and view the A= ST for an SQL Query in Derby? I looked at the sqlparser.jj in the source co= de, but couldn't find a way to start it and parse a query without hacking i= nto all the code.
=0A
=0ASome thing like this one: http://www.experlo= g.com/gibello/zql/ ?
=0A
=0AI am especially interested in extending t= he SQL grammar a little bit by adding a few keywords and re-writing some qu= eries issued by the user. So,  some kind of a Visitor-pattern would be= nice.
=0A
=0AThanks,
=0AAshwin (www.JavaForU.com).
=0A
=0A= =0A

=0A=0A=0A
=0A
=0A
=0A
=0A
=0A
=0A
=0A
=0A=0A

=0A=0A --Next_1135600977---0-202.54.124.203-16244--