choice2<E> function

Choice2Parser<E> choice2<E>(
  1. Parser<E> p1,
  2. Parser<E> p2
)

Creates the Choice2Parser parser.

Implementation

Choice2Parser<E> choice2<E>(Parser<E> p1, Parser<E> p2) =>
    Choice2Parser(p1, p2);