then<R6> method

  1. @useResult
SequenceParser6<R1, R2, R3, R4, R5, R6> then<R6>(
  1. Parser<R6> other
)

Returns a parser that consumes the receiver followed by other in sequence and returns a SequenceParser6 with the 6 positional parse results.

Flattens into a strictly typed Record with 6 elements, preserving static type information.

For example, the parser char('a').then(char('b')).then(char('c')).then(char('d')).then(char('e')).then(char('f')) returns ('a', 'b', 'c', 'd', 'e', 'f') for the input 'abcdef'.

Implementation

@useResult
SequenceParser6<R1, R2, R3, R4, R5, R6> then<R6>(Parser<R6> other) =>
    SequenceParser6<R1, R2, R3, R4, R5, R6>(
      parser1,
      parser2,
      parser3,
      parser4,
      parser5,
      other,
    );