Files
organic/src/context/parser_with_context.rs

14 lines
295 B
Rust
Raw Normal View History

macro_rules! parser_with_context {
2023-04-22 01:45:38 -04:00
($target:expr) => {
move |context| move |i| $target(context, i)
};
}
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;