Lines Matching refs:input
37 move |input: I| {
38 let (input, o1) = first.parse(input)?;
39 second.parse(input).map(|(i, o2)| (i, (o1, o2)))
71 move |input: I| {
72 let (input, _) = first.parse(input)?;
73 second.parse(input)
105 move |input: I| {
106 let (input, o1) = first.parse(input)?;
107 second.parse(input).map(|(i, _)| (i, o1))
143 move |input: I| {
144 let (input, o1) = first.parse(input)?;
145 let (input, _) = sep.parse(input)?;
146 second.parse(input).map(|(i, o2)| (i, (o1, o2)))
182 move |input: I| {
183 let (input, _) = first.parse(input)?;
184 let (input, o2) = second.parse(input)?;
185 third.parse(input).map(|(i, _)| (i, o2))
193 /// Parses the input and returns a tuple of results of each parser.
194 fn parse(&mut self, input: I) -> IResult<I, O, E>;
200 fn parse(&mut self, input: Input) -> IResult<Input, (Output,), Error> {
201 self.0.parse(input).map(|(i, o)| (i, (o,)))
226 fn parse(&mut self, input: Input) -> IResult<Input, ( $($ty),+ ), Error> {
227 tuple_trait_inner!(0, self, input, (), $($name)+)
235 ($it:tt, $self:expr, $input:expr, (), $head:ident $($id:ident)+) => ({
236 let (i, o) = $self.$it.parse($input.clone())?;
240 ($it:tt, $self:expr, $input:expr, ($($parsed:tt)*), $head:ident $($id:ident)+) => ({
241 let (i, o) = $self.$it.parse($input.clone())?;
245 ($it:tt, $self:expr, $input:expr, ($($parsed:tt)*), $head:ident) => ({
246 let (i, o) = $self.$it.parse($input.clone())?;
259 fn parse(&mut self, input: I) -> IResult<I, (), E> {
260 Ok((input, ()))