ChoiceParserExtension extension

on

Methods

or(Parser other, {FailureJoiner? failureJoiner}) → ChoiceParser

Available on Parser, provided by the ChoiceParserExtension extension

Returns a parser that accepts the receiver or other (ordered choice).

Operators

operator |(Parser other) → ChoiceParser

Available on Parser, provided by the ChoiceParserExtension extension

Combines this parser and other into a choice, equivalent to calling or.