Maybe nested closures in a macro could work since they're typeless.
This commit is contained in:
parent
9d8fddb44d
commit
99b19410c5
@ -13,3 +13,15 @@
|
|||||||
// pub(crate) use parser_with_context;
|
// pub(crate) use parser_with_context;
|
||||||
|
|
||||||
// use super::nom_context::NomContext;
|
// use super::nom_context::NomContext;
|
||||||
|
|
||||||
|
macro_rules! parser_with_context {
|
||||||
|
($target:ident) => {
|
||||||
|
|context| {
|
||||||
|
|i| {
|
||||||
|
// todo
|
||||||
|
$target(i, context)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
pub(crate) use parser_with_context;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user