Lines Matching defs:parse
38 let (input, o1) = first.parse(input)?;
39 second.parse(input).map(|(i, o2)| (i, (o1, o2)))
72 let (input, _) = first.parse(input)?;
73 second.parse(input)
106 let (input, o1) = first.parse(input)?;
107 second.parse(input).map(|(i, _)| (i, o1))
144 let (input, o1) = first.parse(input)?;
145 let (input, _) = sep.parse(input)?;
146 second.parse(input).map(|(i, o2)| (i, (o1, o2)))
183 let (input, _) = first.parse(input)?;
184 let (input, o2) = second.parse(input)?;
185 third.parse(input).map(|(i, _)| (i, o2))
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> {
236 let (i, o) = $self.$it.parse($input.clone())?;
241 let (i, o) = $self.$it.parse($input.clone())?;
246 let (i, o) = $self.$it.parse($input.clone())?;
257 // Literally, `()` is an empty tuple, so it should simply parse nothing.
259 fn parse(&mut self, input: I) -> IResult<I, (), E> {
278 move |i: I| l.parse(i)