Fixing up compiler errors.

This commit is contained in:
Tom Alexander
2023-09-02 19:28:33 -04:00
parent 564104f1e8
commit 22e9bc991f
3 changed files with 17 additions and 20 deletions

View File

@@ -7,9 +7,14 @@ mod list;
mod parser_context;
mod parser_with_context;
type RefContext<'r, 's> = &'r Context<'r, 's>;
pub type RefContext<'r, 's> = &'r Context<'r, 's>;
trait ContextMatcher =
for<'r, 's> Fn(RefContext<'r, 's>, OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>>;
type DynContextMatcher<'c> = dyn ContextMatcher + 'c;
trait Matcher = for<'s> Fn(OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>>;
type DynMatcher<'c> = dyn Matcher + 'c;
pub use exiting::ExitClass;
pub use parser_context::ContextElement;
pub use parser_context::ExitMatcherNode;
pub(crate) use parser_with_context::parser_with_context;