2022-07-16 21:22:03 -04:00
|
|
|
macro_rules! parser_with_context {
|
2023-04-22 01:45:38 -04:00
|
|
|
($target:expr) => {
|
2022-12-11 00:39:35 -05:00
|
|
|
move |context| move |i| $target(context, i)
|
2022-07-16 21:22:03 -04:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
pub(crate) use parser_with_context;
|
2023-10-16 17:28:28 -04:00
|
|
|
|
|
|
|
|
macro_rules! bind_context {
|
|
|
|
|
($target:expr, $context:expr) => {
|
2023-10-16 18:29:21 -04:00
|
|
|
|i| $target($context, i)
|
2023-10-16 17:28:28 -04:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
pub(crate) use bind_context;
|