nom::separated_pair!
[−]
[src]
macro_rules! separated_pair( ($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,o1) => { separated_pair1!(i1, o1, $($rest)*) } } } ); ($i:expr, $f:expr, $($rest:tt)+) => ( separated_pair!($i, call!($f), $($rest)*); ); );
separated_pair!(I -> IResult<I,O>, I -> IResult<I, T>, I -> IResult<I,P>) => I -> IResult<I, (O,P)>
separated_pair(X,sep,Y) returns (x,y)