use crate::error::Res; use crate::parser::OrgSource; mod exiting; mod global_settings; mod list; mod parser_context; mod parser_with_context; pub type RefContext<'b, 'g, 'r, 's> = &'b Context<'g, 'r, 's>; pub trait ContextMatcher = for<'b, 'g, 'r, 's> Fn( RefContext<'b, 'g, 'r, 's>, OrgSource<'s>, ) -> Res, OrgSource<'s>>; pub type DynContextMatcher<'c> = dyn ContextMatcher + 'c; pub trait Matcher = for<'s> Fn(OrgSource<'s>) -> Res, OrgSource<'s>>; #[allow(dead_code)] pub type DynMatcher<'c> = dyn Matcher + 'c; pub use exiting::ExitClass; pub use global_settings::GlobalSettings; pub use list::List; pub use parser_context::Context; pub use parser_context::ContextElement; pub use parser_context::ExitMatcherNode; pub(crate) use parser_with_context::parser_with_context;