Sorry for my completely ignorance, but what can be the use of parsing SQL?

Suppose from the point of view of a database driver that receives queries, or from a ORM point of view....does it make sense for something?



On Tue, Aug 31, 2010 at 12:59 AM, Tudor Girba <> wrote:
That is cool news. I will take a look in the following days.


On 30 Aug 2010, at 16:00, Fabrizio Perin wrote:

Hi all,
i did implement an SQL parser using Petit Parser. I toke the grammar specification from SQLite . The grammar implemented is not complete, for now i did implement "just" the create table statement, it means that you should be able to parse at least a script for create the database.

The code is in squeaksource .

To download it you can evaluate this:

Gofer new
       squeaksource: 'PetitSQLParser';                                
       package: 'ConfigurationOfPetitSQLParser';                              
(Smalltalk at: #ConfigurationOfPetitSQLParser) perform: #loadDefault
in the repository there are several packages: the core contains the parser for the grammar.

In the package parser there is a parser that instantiate some draft objects representing relational elements.

In the next future i will start to implement also other statements.

If you start to use it and you have some problem please let me know.



Moose-dev mailing list


"No matter how many recipes we know, we still value a chef."

Moose-dev mailing list