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 orother
. The resulting parser returns the parse result of the receiver, if the receiver fails it returns the parse result ofother
(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 orother
. See or for details.