OptionalParserExtension<R> extension

on

Methods

optional() → Parser<R?>

Available on Parser<R>, provided by the OptionalParserExtension extension

Returns new parser that accepts the receiver, if possible. The resulting parser returns the result of the receiver, or null if not applicable.
optionalWith(R value) → Parser<R>

Available on Parser<R>, provided by the OptionalParserExtension extension

Returns new parser that accepts the receiver, if possible. The resulting parser returns the result of the receiver, or value if not applicable.