开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜