WhiteBear Wiki
a set of foundation classes for database engines
Status: Beta
Brought to you by:
silex6
Goal of the SQL parser is to convert some SQL source code to an internal representation. The current implementation convert the source code to a set of objects using classes implemented in the runtime package.
The current implementation use the ANTLR tool - a parser generator. With ANTLR, a configuration file define the vocabulary and the grammar rules for the language. The tool then generate the source code of the parser that will parse a text and retrieve the different rules used in the SQL source code. When parsing a source text, the ANTLR runtime will call a visitor method for each grammar rules used in the source code.
SQL parser is included in org.whitebear.sql package and is currently under development