parse method
Parses the input and returns a result wrapped in Result if successful,
null
otherwise.
Implementation
@override
Result<Object?>? parse(State<StringReader> state) {
if (state.pos >= state.input.length) {
return const Result(null);
}
return state.fail(const ErrorExpectedEndOfInput());
}