tree-sitter-sql
A general/permissive SQL grammar for tree-sitter.
Notes
We don't commit the generated parser files to the main branch. Instead, you can find them on the gh-pages branch. They are also hosted on the GitHub pages site. We're open to feedback & encourage you to open an issue to discuss any problems.
Features
For a complete list of features see the the tests
References
- Wikipedia#SQL_syntax - I consulted wikipedia for naming conventions, though I may not have been strict early on in the prototyping.
- Phoenix Language Reference - A reference diagram.
- SQLite's railroad diagram for expr - Another reference diagram.