I am looking for a lightweight and simple SQL-99 parser in Bison + Flex (parser + lexer).
I've found this BNF grammar -> http://savage.net.au/SQL/, but there is no lexer included.
I'd use PostgreSQL's .y e .l files (in src/backend/parser
of the distribution), but it looks too much complex for my purpose.
I don't need any semantic actions, just a YACC grammar (.y), and a Flex lexer (.l).