3
votes

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).

1
"lightweight and simple SQL-99 parser", I don't think "lightweight" and "simple" can be applied to SQL parsers... :)Bart Kiers

1 Answers

6
votes

hi there is a solution in google projects yaxx:

yac file
lex file

hope that helps you :)