choice ( seq -- parser )


Vocabulary
peg

Inputs
seqa sequence of parsers


Outputs
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