Maybe nested closures in a macro could work since they're typeless.

This commit is contained in:
Tom Alexander 2022-07-16 21:22:03 -04:00
parent 9d8fddb44d
commit 99b19410c5
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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;