Lines Matching refs:value
439 /// Returns the provided value if the child parser succeeds.
443 /// use nom::combinator::value;
447 /// let mut parser = value(1234, alpha1);
453 pub fn value<I, O1: Clone, O2, E: ParseError<I>, F>(
491 /// If the child parser was successful, return the consumed input as produced value.
535 /// use nom::combinator::{consumed, value, recognize, map};
541 /// value(true, tag("1234"))(input)
546 /// let mut consumed_parser = consumed(value(true, separated_pair(alpha1, char(','), alpha1)));
643 /// it will be able to convert the output value and the error value
683 /// or the error value if we encountered an error.
773 /// a parser which always succeeds with given value without consuming any input.
781 /// use nom::combinator::{success, value};
788 /// let mut sign = alt((value(-1, char('-')), value(1, char('+')), success::<_,_,(_,ErrorKind)>(1)));