OptionalParserExtension<R> extension

on

Methods

optional() Parser<R?>
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>
Returns new parser that accepts the receiver, if possible. The resulting parser returns the result of the receiver, or value if not applicable.