db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: SQL grammar building
Date Thu, 12 Nov 2009 12:02:34 GMT
bb00bbyy <thibault.espanol.enssat@gmail.com> writes:

> Hi,
>
> I need advice regarding the file sqlgrammar.jj contained in the
> impl.sql.compile package.
> Well, it seems the file SQLParser.java is produced by some kind of automatic
> process using
> the file sqlgrammar.jj. I have to modify the SQL parsing  to add some fuzzy
> query in apache derby.
> So can somebody help me and tell me where and how to use this "automatic
> process" building SQLParser.java
> from sqlgrammar.jj ?

Hi Thibault,

Derby uses JavaCC (http://javacc.dev.java.net) to generate the parser
from sqlgrammar.jj. This is done by the Ant build scripts when Derby is
built. See the genParser target in the top-level build.xml file, and how
it's used in java/engine/org/apache/derby/impl/sql/build.xml.

Hope this helps,

-- 
Knut Anders

Mime
View raw message