toSequenceParser method

  1. @useResult
Parser<(R1, R2, R3, R4)> toSequenceParser()

Converts a Record of 4 positional parsers to a Parser that runs the parsers in sequence and returns a Record with 4 positional parse results.

For example, the parser (char('a'), char('b'), char('c'), char('d')).toSequenceParser() returns ('a', 'b', 'c', 'd') for the input 'abcd'.

Implementation

@useResult
Parser<(R1, R2, R3, R4)> toSequenceParser() =>
    SequenceParser4<R1, R2, R3, R4>($1, $2, $3, $4);