On Jan 21, 2010, at 5:36 PM, BareFeet wrote:
>
> Vivien wrote:
>> You can use SQLite's own SQL parser
>> (http://www.hwaci.com/sw/lemon/lemon.html) with SQLite's own grammar
>> (to ba found in SQLite's sources) and adapt it to you needs.
>
> That's the theory, but how can I do that easily? It seems that I  
> either have to reverse engineer the virtual machine code it produces  
> or else write my own parsers in Lemon. I would hope there's a way to  
> intercept the parsing built into SQLite to extract the parse tree,  
> but none of my attempts to investigate this have been fruitful.


SQLite doesn't really do a parse tree so much.  It does a little.   
Sometimes.  But its style of operation is closer to "syntax directed  
translation", especially for the CREATE TABLE statement.

D. Richard Hipp
d...@hwaci.com



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to