toSequenceParser method

  1. @useResult
Parser<(R1, R2, R3, R4, R5, R6, R7, R8, R9)> toSequenceParser()

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

For example, the parser (char('a'), char('b'), char('c'), char('d'), char('e'), char('f'), char('g'), char('h'), char('i')).toSequenceParser() returns ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i') for the input 'abcdefghi'.

Implementation

@useResult
Parser<(R1, R2, R3, R4, R5, R6, R7, R8, R9)> toSequenceParser() =>
    SequenceParser9<R1, R2, R3, R4, R5, R6, R7, R8, R9>(
        $1, $2, $3, $4, $5, $6, $7, $8, $9);