Any chance there is a PHP or Perl wrapper around the parser? I would
really like to do some 'correct' parsing (eg of the
binlog/slowlog/processlist), rather than my regular expression hacks.
On 11/17/10 2:30 AM, Hartmut Holzgraefe wrote:
> On 11/17/2010 10:55 AM, tc yang wrote:
>> thanks a lot!
>> mysql not use lex for tokenizing, only use sql_lex.cc and the
>> lex_hash.h to supply the same interface as lex/flex supplied? and the
>> up level also use yacc?
> well, it uses bison, i don't think that it will work with any other
> yacc derivate
>
>> I can find sql_yacc.yy, Is it equal .y file? when I see other yacc
>> demo, yacc file always named .y
> it is yacc/bison just fine, but supposed to interface with C++ code,
> so the double .yy similar to the double .cc used for C++, to tell
> bison that it's dealing with embedded C++ and needs to generate code
> suitable for being compiled using a C++ compiler
>
--
Rick James - MySQL Geek