-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kristoffer Danielsson wrote: > However, if it turns out that parsing the VM-structure is incredibly hard,
The "vm structure" is actually byte code for a virtual cpu (one that happens to be incredibly effective at dealing with the underlying details of SQLite's implementation). It is also tuned and tweaked with almost every release. Going from that back to something a user could understand is beyond incredibly hard. If you want to understand the structure of the statement then you would have to do something similar to what SQLite does in parsing one. See http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/parse.y which shows the grammar used as well as the actions taken on various parts. The tool used is Lemon which is documented at http://www.hwaci.com/sw/lemon/lemon.html If you have used Lemon/Yacc/Bison before then you'll find it a fun project. If you have not then you will find it a hard first project. Roger -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI8RrcmOOfHg372QQRAvOhAJ9r3/p3hrP8E2yoSliCZ4K3eCoqigCgnj5k LL7UhUmLMx+Wcrpyh/dHbnY= =nUev -----END PGP SIGNATURE----- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users