Failure

data class Failure<out I : Any, U : Any>(val message: String, val index: Int, val input: ParserInput<I, U>) : ParseResult<I, Nothing, U>

Indicates that the parser did not match.

A Failure does not consume any input; the caller may attempt alternative parsers at the same position.

Constructors

Link copied to clipboard
constructor(message: String, index: Int, input: ParserInput<I, U>)

Properties

Link copied to clipboard
val index: Int

the position in the token sequence at which the failure occurred.

Link copied to clipboard

the ParserInput that was active when this result was produced.

Link copied to clipboard

a human-readable description of what was expected or what went wrong.