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