fastParse method
Parses the input and returns true
if successful, false
otherwise.
Implementation
@override
bool fastParse(State<StringReader> state) {
if (char < 0 || char > 0x10ffff) {
throw RangeError.range(char, 0, 0x10ffff);
}
final input = state.input;
if (state.pos < input.length) {
if (input.readChar(state.pos) == char) {
state.pos += input.count;
return true;
}
}
state.fail<Object?>(ErrorExpectedCharacter(char));
return false;
}