OptionalParserExtension<R> extension
- on
-
- Parser<
R>
- Parser<
Methods
-
optional(
) → Parser< R?> -
Available on Parser<
Returns new parser that accepts the receiver, if possible. The resulting parser returns the result of the receiver, orR> , provided by the OptionalParserExtension extensionnull
if not applicable. -
optionalWith(
R value) → Parser< R> -
Available on Parser<
Returns new parser that accepts the receiver, if possible. The resulting parser returns the result of the receiver, orR> , provided by the OptionalParserExtension extensionvalue
if not applicable.