parse method
Parses input data actively and produces the result.
Returns Tuple1 of the result if parsing was successful; otherwise
returns null
.
final r1 = p.parse(state);
Implementation
@override
Tuple1<E>? parse(ParseState state) {
final pos = state.pos;
if (p.fastParse(state)) {
ws.fastParse(state);
return _res;
}
state.fail(_err, pos);
state.pos = pos;
}