开发者

Bison + Flex SQL parser

开发者 https://www.devze.com 2023-03-05 20:08 出处:网络
I am looking for a lightweight and simple SQL-99 p开发者_运维技巧arser in Bison + Flex (parser + lexer).

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

精彩评论

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