ChoiceParser<E> constructor

ChoiceParser<E>(
  1. List<Parser<E>> ps
)

Implementation

ChoiceParser(this.ps) {
  if (ps.isEmpty) {
    throw ArgumentError.value(ps, 'ps', 'Must not be empty');
  }

  label = ps.map(_quote).join(' | ');
}