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