From a4e8f799fb4665b210086c28647e0fa335384913 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 13 Apr 2019 12:08:14 +0200 Subject: Clarify role of dhall_generated_parser crate --- dhall_generated_parser/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dhall_generated_parser/src/lib.rs (limited to 'dhall_generated_parser/src/lib.rs') diff --git a/dhall_generated_parser/src/lib.rs b/dhall_generated_parser/src/lib.rs new file mode 100644 index 0000000..97a0d54 --- /dev/null +++ b/dhall_generated_parser/src/lib.rs @@ -0,0 +1,10 @@ +// 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")); -- cgit v1.2.3