This commit is contained in:
Tom Alexander
2022-12-18 03:04:18 -05:00
parent 54ed989300
commit 46672b40b2
2 changed files with 3 additions and 4 deletions

View File

@@ -4,13 +4,13 @@ use nom::IResult;
use super::error::CustomError;
use super::error::MyError;
use super::error::Res;
use super::list::List;
use super::list::Node;
use super::token::Token;
use super::Context;
type Matcher =
dyn for<'r, 's> Fn(Context<'r, 's>, &'s str) -> IResult<&'s str, &'s str, CustomError<&'s str>>;
type Matcher = dyn for<'r, 's> Fn(Context<'r, 's>, &'s str) -> Res<&'s str, &'s str>;
#[derive(Debug, Clone)]
pub struct ContextTree<'r, 's> {