pest_typed_generator/
lib.rs

1// pest-typed. A statically typed version of pest.
2// Copyright (c) 2023 黄博奕
3//
4// Licensed under the Apache License, Version 2.0
5// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
6// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7// option. All files in the project carrying such notice may not be copied,
8// modified, or distributed except according to those terms.
9
10//! A code generator based on [`pest`].
11//!
12//! Features:
13//!
14//! - `grammar-extras`.
15//!
16//!    Enables extra grammars of [`pest`].
17//!
18//! It can create corresponding type definitions from pest grammar files.
19//!
20//! See [pest_typed](https://docs.rs/pest_typed/latest/pest_typed/) for related traits and types.
21
22#![warn(
23    missing_docs,
24    rust_2018_idioms,
25    rustdoc::all,
26    unused_qualifications,
27    future_incompatible
28)]
29
30mod config;
31mod graph;
32mod match_choices;
33mod typed;
34pub use match_choices::match_choices;
35pub use typed::derive_typed_parser;
36
37// Below modules are copied from pest and modified.
38mod docs;
39mod generator;
40mod helper;
41mod types;