import '../core/parser.dart'; extension AcceptParser on Parser { /// Tests if the [input] can be successfully parsed. /// /// For example, `letter().plus().accept('abc')` returns `true`, and /// `letter().plus().accept('123')` returns `false`. bool accept(String input, {int start = 0}) => fastParseOn(input, start) >= 0; }