toSequenceParser method
Converts a Record of 5 positional parsers to a Parser that runs the parsers in sequence and returns a Record with 5 positional parse results.
For example,
the parser (char('a'), char('b'), char('c'), char('d'), char('e')).toSequenceParser()
returns ('a', 'b', 'c', 'd', 'e')
for the input 'abcde'
.
Implementation
@useResult
Parser<(R1, R2, R3, R4, R5)> toSequenceParser() =>
SequenceParser5<R1, R2, R3, R4, R5>($1, $2, $3, $4, $5);