word function

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

Returns a parser that accepts any word character (lowercase, uppercase, underscore, or digit). The accepted input is equivalent to the character-set a-zA-Z_0-9.

Implementation

Parser<String> word([String message = 'letter or digit expected']) =>
    CharacterParser(const WordCharPredicate(), message);