diff options
author | Nadrieril Feneanar | 2019-09-19 10:54:11 +0200 |
---|---|---|
committer | GitHub | 2019-09-19 10:54:11 +0200 |
commit | 4daead27eb65e3a38869924f0f3ed1f425de1b33 (patch) | |
tree | 06effc0f10795a208e929bdf9fdbbbfa6d94cc31 /dhall_generated_parser/src | |
parent | bcaeab3b7b114d8782be9589ad673ab9ab8c59fd (diff) | |
parent | bf417fadb206d6d2351a13cd7c6988977a46dd33 (diff) |
Merge pull request #113 from Nadrieril/pest_consume
Extract parser macros into an independent crate
Diffstat (limited to '')
-rw-r--r-- | dhall_generated_parser/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dhall_generated_parser/src/lib.rs b/dhall_generated_parser/src/lib.rs index 280b75e..fbb9ccd 100644 --- a/dhall_generated_parser/src/lib.rs +++ b/dhall_generated_parser/src/lib.rs @@ -14,4 +14,9 @@ // 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")); + +use pest_derive::Parser; + +#[derive(Parser)] +#[grammar = "dhall.pest"] +pub struct DhallParser; |