pub fn upper<Input>() -> impl Parser<Input, Output = char, PartialState = ()>
Expand description
Parses an uppercase letter according to std::char::is_uppercase
.
use combine::Parser;
use combine::parser::char::upper;
assert_eq!(upper().parse("A"), Ok(('A', "")));
assert!(upper().parse("a").is_err());