substrait_antlr/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! Generated Rust [ANTLR](https://www.antlr.org/) parsers for the
4//! [Substrait](https://substrait.io/) grammars, built against the
5//! [`antlr4rust`](https://docs.rs/antlr4rust) runtime.
6//!
7//! The grammars from which this code is generated can be found
8//! [here](https://github.com/substrait-io/substrait/tree/main/grammar).
9//!
10//! - [`substrait_type`] — parser for the Substrait type grammar
11//! (`SubstraitType.g4`).
12//! - [`func_test_case`] — parser for the function test case grammar
13//! (`FuncTestCaseParser.g4`).
14//!
15//! The generated code only works with the exact `antlr4rust` version it was
16//! generated for, so that runtime is re-exported as [`antlr4rust`]. Use it
17//! through this re-export rather than depending on `antlr4rust` directly, so
18//! that the two can never drift apart.
19
20pub use antlr4rust;
21
22pub mod func_test_case;
23pub mod substrait_type;