Its building again.

This commit is contained in:
Tom Alexander 2022-12-10 23:38:19 -05:00
parent 7bed61a541
commit 75ab876b0b
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 3 additions and 3 deletions

View File

@ -43,16 +43,17 @@ use tracing::trace;
type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>; type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>;
fn context_many_till<'r, I, O, E, F, M, T>( fn context_many_till<'r: 'x, 'x, I, O, E, F, M, T>(
context: Context<'r>, context: Context<'r>,
mut many_matcher: M, mut many_matcher: M,
mut till_matcher: T, mut till_matcher: T,
) -> impl FnMut(I) -> IResult<I, (Vec<O>, F), E> ) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E>
where where
I: Clone + InputLength, I: Clone + InputLength,
E: ParseError<I>, E: ParseError<I>,
M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E>, M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E>,
T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E>, T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E>,
O: Into<Token<'x>>,
{ {
move |mut i: I| { move |mut i: I| {
let mut current_context = context.clone(); let mut current_context = context.clone();
@ -73,7 +74,6 @@ where
ret.push(token); ret.push(token);
} }
}; };
} }
// TODO build a vec of the elements by popping off the newest elements of the context // TODO build a vec of the elements by popping off the newest elements of the context
return Ok((remaining, (ret, finish))); return Ok((remaining, (ret, finish)));