choice ( seq -- parser )


Vocabulary
peg

Inputs and outputs
seqa sequence of parsers
parsera parser


Word description
Returns a parser that will try all the parsers in the sequence, in order, until one succeeds. The resulting AST is that produced by the successful parser.

Definition