or

fun <T> Parser<T>.or(alternative: Parser<T>): (Parseable) -> ParserOutput<T>?

Returns a parser that returns the first successful result

Return

The result from this parser, or failing that the alternative

Parameters

alternative

The parser to try if this one fails