This commit is contained in:
Breval Ferrari 2025-05-21 17:17:00 +02:00
parent d9eab53858
commit 1044ad9b1d

View file

@ -13,8 +13,8 @@ use nom::{
complete::{char, space1, usize}, complete::{char, space1, usize},
streaming::one_of, streaming::one_of,
}, },
combinator::{opt, value, verify}, combinator::{opt, value},
error::{Error, ErrorKind, ParseError}, error::{Error, ParseError},
multi::many0, multi::many0,
sequence::{delimited, preceded}, sequence::{delimited, preceded},
}; };
@ -214,7 +214,7 @@ impl<'s> Slope<'s> {
} }
/// Will return the longest valid fasteval expression /// Will return the longest valid fasteval expression
fn expression_parser<'a, I: Input + AsRef<str> + Copy, C: Into<char> + Ord + Display>( fn expression_parser<I: Input + AsRef<str> + Copy, C: Into<char> + Ord + Display>(
variables: &[C], variables: &[C],
) -> impl Fn(I) -> IResult<I, Expression> { ) -> impl Fn(I) -> IResult<I, Expression> {
|input: I| { |input: I| {