Bison + Flex SQL parser
I am looking for a lightweight and simple SQL-99 p开发者_运维技巧arser 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).
hi there is a solution in google projects yaxx:
yac file
lex file
hope that helps you :)
精彩评论