pub fn upper<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 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());