野牛 + Flex SQL 解析器
我正在 Bison + Flex(解析器 + 词法分析器)中寻找一个轻量级且简单的 SQL-99 解析器。
我发现了这个 BNF 语法 -> http://savage.net.au/SQL/,但不包含词法分析器。 我会使用 PostgreSQL 的 .ye .l 文件(在发行版的 src/backend/parser 中),但对于我的目的来说,它看起来太复杂了。
我不需要任何语义操作,只需要 YACC 语法 (.y) 和 Flex 词法分析器 (.l)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您好,Google 项目 yaxx 中有一个解决方案:
yac 文件
lex 文件
希望对您有所帮助:)
hi there is a solution in google projects yaxx:
yac file
lex file
hope that helps you :)