Bison + Flex SQL Parser

I am looking for a lightweight and simple SQL-99 parser in Bison + Flex (parser + lexer).

I found this BNF grammar -> http://savage.net.au/SQL/ , but the lexer is not included. I would use the PostgreSQL.y el files (in src/backend/parserfor the distribution), but for my purpose this seems too complicated.

I don't need semantic actions, just the grammar of YACC (.y) and Flex lexer (.l).

+3
source share
1 answer

hi is the solution in yaxx google projects:

yac file
lex file

hope this helps you :)

+6
source

All Articles