any function

  1. @useResult
Parser<String> any({
  1. String message = 'input expected',
  2. bool unicode = false,
})

Returns a parser that accepts any character.

For example, any() succeeds and consumes any given letter. It only fails for an empty input.

Implementation

@useResult
Parser<String> any({String message = 'input expected', bool unicode = false}) =>
    CharacterParser(ConstantCharPredicate.any, message, unicode: unicode);