Does ANTLR4 have a sql grammar available? If so, where can I find it?
There is a link from the ANTLR wiki, but the link is broken: grammar list
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, at the time of this writing, there is no v4 SQL grammar.
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
The v3 grammars here now: http://antlr3.org/grammar/list.html
EDIT – April 2018
There is now a user contributed MySQL grammar here: [dead link removed]
EDIT – February 2020
MySQL, T-SQL, PL/SQL, and SQLite grammars are all available here: https://github.com/antlr/grammars-v4/tree/master/sql