sql parser using lex and yacc