nom::delimited!
[−]
[src]
macro_rules! delimited( ($i:expr, $submac:ident!( $($args:tt)* ), $($rest:tt)+) => ( { match $submac!($i, $($args)*) { $crate::IResult::Error(a) => $crate::IResult::Error(a), $crate::IResult::Incomplete(i) => $crate::IResult::Incomplete(i), $crate::IResult::Done(i1,_) => { delimited1!(i1, $($rest)*) } } } ); ($i:expr, $f:expr, $($rest:tt)+) => ( delimited!($i, call!($f), $($rest)*); ); );
delimited!(I -> IResult<I,T>, I -> IResult<I,O>, I -> IResult<I,U>) => I -> IResult<I, O>
delimited(opening, X, closing) returns X