toSequenceParser method

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

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

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

Implementation

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