Lines Matching refs:rest
144 ($i:expr, $separator:path, $submac1:ident!( $($args1:tt)* ), $($rest:tt)+) => ({
147 match tuple_sep!($i, $separator, (), $submac1!($($args1)*), $($rest)+) {
154 ($i:expr, $separator:path, $f:expr, $($rest:tt)+) => (
155 delimited_sep!($i, $separator, call!($f), $($rest)+);
162 ($i:expr, $separator:path, $submac1:ident!( $($args1:tt)* ), $($rest:tt)+) => ({
165 match tuple_sep!($i, $separator, (), $submac1!($($args1)*), $($rest)+) {
172 ($i:expr, $separator:path, $f:expr, $($rest:tt)+) => (
173 separated_pair_sep!($i, $separator, call!($f), $($rest)+);
229 ($i:expr, $separator:path, ($($parsed:tt),*), $e:path, $($rest:tt)*) => (
230 tuple_sep!($i, $separator, ($($parsed),*), call!($e), $($rest)*);
232 ($i:expr, $separator:path, (), $submac:ident!( $($args:tt)* ), $($rest:tt)*) => (
239 tuple_sep!(i, $separator, (o), $($rest)*)
244 ($i:expr, $separator:path, ($($parsed:tt)*), $submac:ident!( $($args:tt)* ), $($rest:tt)*) => (
251 tuple_sep!(i, $separator, ($($parsed)* , o), $($rest)*)
293 (__impl $i:expr, $separator:path, ( $($rest:expr),* )) => (
294 $crate::lib::std::result::Result::Ok(($i, ( $($rest),* )))
297 (__impl $i:expr, $separator:path, $e:ident >> $($rest:tt)*) => (
298 do_parse_sep!(__impl $i, $separator, call!($e) >> $($rest)*);
300 (__impl $i:expr, $separator:path, $submac:ident!( $($args:tt)* ) >> $($rest:tt)*) => (
307 do_parse_sep!(__impl i, $separator, $($rest)*)
313 (__impl $i:expr, $separator:path, $field:ident : $e:ident >> $($rest:tt)*) => (
314 do_parse_sep!(__impl $i, $separator, $field: call!($e) >> $($rest)*);
317 …(__impl $i:expr, $separator:path, $field:ident : $submac:ident!( $($args:tt)* ) >> $($rest:tt)*) =…
325 do_parse_sep!(__impl i, $separator, $($rest)*)
332 (__impl $i:expr, $separator:path, $e:ident >> ( $($rest:tt)* )) => (
333 do_parse_sep!(__impl $i, $separator, call!($e) >> ( $($rest)* ));
336 (__impl $i:expr, $separator:path, $submac:ident!( $($args:tt)* ) >> ( $($rest:tt)* )) => ({
342 Ok((i, ( $($rest)* )))
347 (__impl $i:expr, $separator:path, $field:ident : $e:ident >> ( $($rest:tt)* )) => (
348 do_parse_sep!(__impl $i, $separator, $field: call!($e) >> ( $($rest)* ) );
351 …(__impl $i:expr, $separator:path, $field:ident : $submac:ident!( $($args:tt)* ) >> ( $($rest:tt)* …
358 Ok((i, ( $($rest)* )))
363 ($i:expr, $separator:path, $($rest:tt)*) => (
365 do_parse_sep!(__impl $i, $separator, $($rest)*)
373 ($i:expr, $separator:path, $($rest:tt)*) => (
379 let mut res = permutation_init!((), $($rest)*);
386 permutation_iterator_sep!(0, input, $separator, all_done, needed, res, $($rest)*);
399 if let Some(unwrapped_res) = { permutation_unwrap!(0, (), res, $($rest)*) } {
416 …($it:tt,$i:expr, $separator:path, $all_done:expr, $needed:expr, $res:expr, $e:ident?, $($rest:tt)*…
417 permutation_iterator_sep!($it, $i, $separator, $all_done, $needed, $res, call!($e), $($rest)*);
419 …($it:tt,$i:expr, $separator:path, $all_done:expr, $needed:expr, $res:expr, $e:ident, $($rest:tt)*)…
420 permutation_iterator_sep!($it, $i, $separator, $all_done, $needed, $res, call!($e), $($rest)*);
423 …path, $all_done:expr, $needed:expr, $res:expr, $submac:ident!( $($args:tt)* )?, $($rest:tt)*) => ({
424 …ation_iterator_sep!($it, $i, $separator, $all_done, $needed, $res, $submac!($($args)*), $($rest)*);
426 …:path, $all_done:expr, $needed:expr, $res:expr, $submac:ident!( $($args:tt)* ), $($rest:tt)*) => ({
446 succ!($it, permutation_iterator_sep!($i, $separator, $all_done, $needed, $res, $($rest)*));
485 (__impl $i:expr, $separator:path, $e:path | $($rest:tt)*) => (
486 alt_sep!(__impl $i, $separator, call!($e) | $($rest)*);
489 (__impl $i:expr, $separator:path, $subrule:ident!( $($args:tt)*) | $($rest:tt)*) => (
497 Err(Err::Error(_)) => alt_sep!(__impl $i, $separator, $($rest)*),
503 …(__impl $i:expr, $separator:path, $subrule:ident!( $($args:tt)* ) => { $gen:expr } | $($rest:tt)+)…
511 alt_sep!(__impl $i, $separator, $($rest)+)
518 (__impl $i:expr, $separator:path, $e:path => { $gen:expr } | $($rest:tt)*) => (
519 alt_sep!(__impl $i, $separator, call!($e) => { $gen } | $($rest)*);
580 ($i:expr, $separator:path, $($rest:tt)*) => (
582 alt_sep!(__impl $i, $separator, $($rest)*)
618 ($i:expr, $separator:path, $submac:ident!( $($args:tt)*), $($rest:tt)*) => (
620 switch_sep!(__impl $i, $separator, $submac!($($args)*), $($rest)*)
623 ($i:expr, $separator:path, $e:path, $($rest:tt)*) => (
625 switch_sep!(__impl $i, $separator, call!($e), $($rest)*)
688 ($i:expr, $separator:path, tuple ! ($($rest:tt)*) ) => {
689 tuple_sep!($i, $separator, (), $($rest)*)
691 ($i:expr, $separator:path, pair ! ($($rest:tt)*) ) => {
694 pair_sep!($separator, $($rest)*)
697 ($i:expr, $separator:path, delimited ! ($($rest:tt)*) ) => {
700 delimited_sep!($separator, $($rest)*)
703 ($i:expr, $separator:path, separated_pair ! ($($rest:tt)*) ) => {
706 separated_pair_sep!($separator, $($rest)*)
709 ($i:expr, $separator:path, preceded ! ($($rest:tt)*) ) => {
712 preceded_sep!($separator, $($rest)*)
715 ($i:expr, $separator:path, terminated ! ($($rest:tt)*) ) => {
718 terminated_sep!($separator, $($rest)*)
721 ($i:expr, $separator:path, do_parse ! ($($rest:tt)*) ) => {
724 do_parse_sep!($separator, $($rest)*)
727 ($i:expr, $separator:path, permutation ! ($($rest:tt)*) ) => {
730 permutation_sep!($separator, $($rest)*)
733 ($i:expr, $separator:path, alt ! ($($rest:tt)*) ) => {
736 alt_sep!($separator, $($rest)*)
739 ($i:expr, $separator:path, switch ! ($($rest:tt)*) ) => {
742 switch_sep!($separator, $($rest)*)
745 ($i:expr, $separator:path, separated_list ! ($($rest:tt)*) ) => {
748 separated_list_sep!($separator, $($rest)*)
751 ($i:expr, $separator:path, many0 ! ($($rest:tt)*) ) => {
752 many0!($i, wrap_sep!($separator, $($rest)*))
754 ($i:expr, $separator:path, many1 ! ($($rest:tt)*) ) => {
755 many1!($i, wrap_sep!($separator, $($rest)*))