#![warn(missing_docs)] #![allow(clippy::type_complexity)] //! Memoir is a library of self-describing, reflective parser-combinators. //! Parsers are represented as reified objects that can print themselves //! as documentation. //! //! For most purposes, syntaxe's *prelude* should be imported. //! //! ``` //! use syntaxe::*; //! //! let parser = //! string("set").then(optional(symbol('!'))) //! .then(whitespace()) //! .then(string("on").or(string("off"))); //! //! assert!(parser.parse("set on").is_ok()); //! ``` pub mod parsers; pub mod prelude; pub mod result; pub use parsers::*;