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. The resulting parser returns the parse result of the receiver, if the receiver fails it returns the parse result of other (exclusive ordered choice).

Operators

operator |(Parser other) ChoiceParser

Available on Parser, provided by the ChoiceParserExtension extension

Convenience operator returning a parser that accepts the receiver or other. See or for details.