Skip to content

Is it possible to have an SQL reference with syntax diagrams? #33158

Discussion options

You must be logged in to vote

Currently no. Unfortunately our parser is not declarative and we cannot transform it to this graph.
I want to address this problem by rewriting it. Previous attempt with ANTLR was unsuccessful.

You can find incomplete, unsupported ANTLR grammar definition for ClickHouse here:
https://github.com/ClickHouse/ClickHouse/tree/master/utils/antlr

It covers maybe 80% of the language.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ramazanpolat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants