syntaxe/
lib.rs

1#![warn(missing_docs)]
2#![allow(clippy::type_complexity)]
3
4//! Memoir is a library of self-describing, reflective parser-combinators.
5//! Parsers are represented as reified objects that can print themselves
6//! as documentation.
7//!
8//! For most purposes, syntaxe's *prelude* should be imported.
9//!
10//! ```
11//! use syntaxe::*;
12//!
13//! let parser =
14//!     string("set").then(optional(symbol('!')))
15//!     .then(whitespace())
16//!     .then(string("on").or(string("off")));
17//!
18//! assert!(parser.parse("set on").is_ok());
19//! ```
20pub mod parsers;
21pub mod prelude;
22pub mod result;
23
24pub use parsers::*;