summaryrefslogtreecommitdiff
path: root/dhall_generated_parser/src/lib.rs
blob: 527e657c5dabdee63c6d2932392f37afce4e4406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This crate only contains a [pest][pest]-generated parser for the [dhall][dhall] language.
//! It is part of the [dhall-rust][dhall-rust] crate.
//!
//! [pest]: https://pest.rs
//! [dhall]: https://dhall-lang.org/
//! [dhall-rust]: https://github.com/Nadrieril/dhall-rust

// This crate only contains the grammar-generated parser. The rest of the
// parser is in dhall_core. This separation is because compiling the
// grammar-generated parser is extremely slow.
// See the https://pest.rs documentation for details on what this crate contains.
// The pest file is auto-generated and is located at ./dhall.pest.
// It is generated from grammar.abnf in a rather straightforward manner. Some
// additional overrides are done in ../build.rs.
// The lines that are commented out in ./dhall.pest.visibility are marked as
// silent (see pest docs for what that means) in the generated pest file.
include!(concat!(env!("OUT_DIR"), "/grammar.rs"));