https://github.com/bytebase/trino-parser
Trino SQL parser based on ANTLR4.
https://github.com/bytebase/trino-parser
Last synced: 7 months ago
JSON representation
Trino SQL parser based on ANTLR4.
- Host: GitHub
- URL: https://github.com/bytebase/trino-parser
- Owner: bytebase
- License: mit
- Created: 2025-04-17T17:32:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-05-02T00:01:19.000Z (8 months ago)
- Last Synced: 2025-06-22T07:39:05.568Z (7 months ago)
- Language: ANTLR
- Size: 365 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trino grammar for ANTLR4
An ANTLR4 grammar for Trino, formerly known as PrestoSQL.
This grammar is based on the actively maintained [Trino repository](https://github.com/trinodb/trino).
The lexer and parser are referenced from the [offical base antlr file](https://github.com/trinodb/trino/blob/master/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4).
Changes are made to accommodate various language targets as the official one is being developed for Java only.
The examples are extracted from the [offical test file](https://github.com/trinodb/trino/blob/master/core/trino-parser/src/test/java/io/trino/sql/parser/TestSqlParser.java).