case class Failure[Elem, Repr](input: ParserInput[Elem, Repr], fullStack: Buffer[Frame], index: Int, lastParser: Parser[_, Elem, Repr], originalParser: Parser[_, Elem, Repr], originalIndex: Int, traceIndex: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean) extends Mutable[Nothing, Elem, Repr] with Product with Serializable
A mutable version of Parsed.Failure with extra data.
- originalParser
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
- originalIndex
The original index that originalParser was attemped at
- traceIndex
The index at which parser traces are required; -1 if empty
- traceParsers
If a
traceIndexis provided, this will contain any parsers within this Failure that failed at exactly that index, which will be used for error reporting. If you are writing your own custom Parser and it contains sub-parsers, you should generally aggregate any the traceParsers of any of their results.
- Alphabetic
- By Inheritance
- Failure
- Serializable
- Product
- Equals
- Mutable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Failure(input: ParserInput[Elem, Repr], fullStack: Buffer[Frame], index: Int, lastParser: Parser[_, Elem, Repr], originalParser: Parser[_, Elem, Repr], originalIndex: Int, traceIndex: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean)
- originalParser
the original parser that was attempted and failed. Used to repeat the parse with tracing when generating error messages
- originalIndex
The original index that originalParser was attemped at
- traceIndex
The index at which parser traces are required; -1 if empty
- traceParsers
If a
traceIndexis provided, this will contain any parsers within this Failure that failed at exactly that index, which will be used for error reporting. If you are writing your own custom Parser and it contains sub-parsers, you should generally aggregate any the traceParsers of any of their results.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- var cut: Boolean
Whether or not the parser encountered a Cut before reaching this success, which prevents backtracking.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fullStack: Buffer[Frame]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var index: Int
- var input: ParserInput[Elem, Repr]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var lastParser: Parser[_, Elem, Repr]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val originalIndex: Int
- val originalParser: Parser[_, Elem, Repr]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toResult: Parsed.Failure[Elem, Repr]
Snapshots this mutable result and converts it into an immutable Parsed object
- val traceIndex: Int
- var traceParsers: Set[Parser[_, Elem, Repr]]
A set of parsers which have failed to parse at the configured
traceIndex. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()