>>>>> "Manish" == Manish Chakrabarti <manish@stripped>
Manish> I have a mysql question. I am looking for a pretty robust SQL
Manish> parser/query engine
Manish> which is also "transparent" in the sense that one can go into it and
Manish> modify the query
Manish> processing parts (i.e. "actions")?
Manish> Does MySQL source distribution include the lex/yacc files specifying the
Manish> SQL grammar, and also are there some "hooks" into the parser/query
Manish> processing engine
Manish> of MySQL?
The lex and yacc files are the following:
The last one is used to generate a perfect hash for the lexical
analyzer to quickly find out keywords.
It shouldn't be hard to add hooks to the sql_yacc.yy file to what you need.
Manish> So that I can have handles into the parse tree (which I plan to use for
Manish> my purpose)
Manish> and replace the query plan execution modules by my own code.
Manish> I could not find this talked about in the mysql maling lists. I am
Manish> basically interested in extracting the query parsing engine out of
Manish> Is it possible to do that?