ClickHouse/utils/antlr
2022-11-02 23:38:03 +03:00
..
ClickHouseLexer.g4 add support of window function in antlr grammar 2021-10-14 17:40:14 +02:00
ClickHouseParser.g4 Support cte statement for antlr4 syntax file #39810 2022-08-02 17:17:08 +08:00
README.md Update README.md 2022-11-02 23:38:03 +03:00

This parser is unsupported

We keep it in this repository for your curiosity. But this is not the parser of ClickHouse.

How to generate source code files from grammar

Grammar is located inside ClickHouseLexer.g4 and ClickHouseParser.g4 files.

To generate source code you need to install locally the antlr4 binary:

cd src/Parsers/New
antlr4 -no-listener -visitor -package DB -Dlanguage=Cpp ClickHouseLexer.g4  # if you have changes in a lexer part of grammar
antlr4 -no-listener -visitor -package DB -Dlanguage=Cpp ClickHouseParser.g4

Commit only git-tracked generated files - not all of the generated content is required.