noneOf function

Parser<String> noneOf (
  1. String chars,
  2. [String message]
)

Returns a parser that accepts none of the specified characters.

Implementation

Parser<String> noneOf(String chars, [String message]) {
  return CharacterParser(NotCharacterPredicate(optimizedString(chars)),
      message ?? 'none of "${toReadableString(chars)}" expected');
}