pub fn letter<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 alphabet letter according to std::char::is_alphabetic
.
use combine::Parser;
use combine::parser::char::letter;
assert_eq!(letter().parse("a"), Ok(('a', "")));
assert_eq!(letter().parse("A"), Ok(('A', "")));
assert!(letter().parse("9").is_err());