An ANTLR4 grammar for Trino, formerly known as PrestoSQL. This grammar is based on the actively maintained Trino repository.
The lexer and parser are referenced from the offical base antlr file. 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.