You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2005/11/29 22:28:58 UTC

[Db-derby Wiki] Update of "LanguageParse" by DanDebrunner

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DanDebrunner:
http://wiki.apache.org/db-derby/LanguageParse

New page:
= Derby SQL Parsing =

The input to the parser is a Java string containing the text of the SQL statement. Since the statement is a Java String its character set is always Unicode.

The parser is generated by javacc and its source is in the file {{{ /trunk/java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj }}}

Parsing creates a tree of query nodes, each represented by an instance of a sub-class of {{{org.apache.derby.impl.sql.compile.QueryTreeNode}}} class. Each node represents a database operation.

Currently the nodes are created indirectly through a !NodeFactory, however [http://issues.apache.org/jira/browse/DERBY-673 DERBY-673] describes removing the factory.

Onto the bind phase: LanguageBind