letter function

Parser<String> letter (
  1. [String message = 'letter expected']
)

Returns a parser that accepts any letter character.

Implementation

Parser<String> letter([String message = 'letter expected']) {
  return CharacterParser(const LetterCharPredicate(), message);
}