pub fn lower<Input>() -> impl Parser<Input, Output = char, PartialState = ()> where
Input: Stream<Token = char>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position>,
Expand description
Parses an lowercase letter according to std::char::is_lowercase
.
use combine::Parser;
use combine::parser::char::lower;
assert_eq!(lower().parse("a"), Ok(('a', "")));
assert!(lower().parse("A").is_err());