Choice4<I, O> constructor

Choice4<I, O>(
  1. Parser<I, O> p1,
  2. Parser<I, O> p2,
  3. Parser<I, O> p3,
  4. Parser<I, O> p4,
)

Implementation

Choice4(this.p1, this.p2, this.p3, this.p4) {
  label = '(${[p1, p2, p3, p4].map(Parser.quote).join(' | ')})';
}