2022-07-17 00:42:56 +00:00
|
|
|
// macro_rules! parser_with_context {
|
|
|
|
// ($name:ident,$typ:ty,$inp:ident,$context:ident,$fnbody:block) => {
|
|
|
|
// pub fn $name<'c>(
|
|
|
|
// $context: NomContext<'c, &str, &str, VerboseError<&str>>,
|
|
|
|
// ) -> impl for<'a> FnMut(&'a str) -> IResult<&'a str, $typ, VerboseError<&'a str>> + 'c {
|
|
|
|
// |$inp| $fnbody
|
|
|
|
// }
|
|
|
|
// };
|
|
|
|
// }
|
2022-07-16 03:26:49 +00:00
|
|
|
|
2022-07-17 00:42:56 +00:00
|
|
|
// use nom::error::VerboseError;
|
|
|
|
// use nom::IResult;
|
|
|
|
// pub(crate) use parser_with_context;
|
|
|
|
|
|
|
|
// use super::nom_context::NomContext;
|