antlr4 sql语法 [英] antlr4 sql grammar

查看:50
本文介绍了antlr4 sql语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ANTLR4 有可用的 sql 语法吗?如果是这样,我在哪里可以找到它?

Does ANTLR4 have a sql grammar available? If so, where can I find it?

ANTLR wiki 有一个链接,但链接已损坏:语法列表

There is a link from the ANTLR wiki, but the link is broken: grammar list

推荐答案

没有,在撰写本文时,还没有 v4 SQL 语法.

No, at the time of this writing, there is no v4 SQL grammar.

所有 v4 语法都将放入以下 ​​Github 存储库(据我从 ANTLR 邮件列表中记得):https://github.com/antlr/grammars-v4

All v4 grammar will be put into the following Github repository (as far as I can remember from the ANTLR mailing list): https://github.com/antlr/grammars-v4

现在这里的 v3 语法:http://antlr3.org/grammar/list.html

The v3 grammars here now: http://antlr3.org/grammar/list.html

这里现在有一个用户贡献的 MySQL 语法:[死链接已删除]

There is now a user contributed MySQL grammar here: [dead link removed]

MySQL、T-SQL、PL/SQL 和 SQLite 语法都可以在这里找到:https://github.com/antlr/grammars-v4/tree/master/sql

MySQL, T-SQL, PL/SQL, and SQLite grammars are all available here: https://github.com/antlr/grammars-v4/tree/master/sql

这篇关于antlr4 sql语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆