trait ParserResults[+T, Elem, Repr] extends AnyRef
Convenience methods to be used internally inside Parsers
- Self Type
- Parser[T, Elem, Repr]
- Alphabetic
- By Inheritance
- ParserResults
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fail(f: Failure[Elem, Repr], index: Int, traceParsers: Set[Parser[_, Elem, Repr]] = null, cut: Boolean = false): Failure[Elem, Repr]
Prepares a failure object for a new failure
Prepares a failure object for a new failure
- f
The failure object, usually retrieved from the ParseCtx to avoid allocation overhead
- index
The index at which this failure occurred
- traceParsers
Any parsers which failed at the current index. These get noted in the error message if
traceFailureis set. By default, this is the current parser.- cut
Whether or not this failure should prevent backtracking
-
def
failMore(f: Failure[Elem, Repr], index: Int, logDepth: Int, traceParsers: Set[Parser[_, Elem, Repr]] = null, cut: Boolean = false): Failure[Elem, Repr]
Prepares a failure object to continue an existing failure, e.g.
Prepares a failure object to continue an existing failure, e.g. if some sub-parser failed and you want to pass the failure up the stack.
- f
The failure returned by the subparser
- index
The index of the *current* parser
- traceParsers
Any parsers which failed at the current index. These get noted in the error message if
traceFailureis set. By default, the existingtraceParsersfrom the original failure are left unchanged- cut
Whether or not this parser failing should prevent backtracking. ORed with any cuts caused by the existing failure
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeTrace(traceIndex: Int, lhs: Set[Parser[_, Elem, Repr]], rhs: Set[Parser[_, Elem, Repr]]): Set[Parser[_, Elem, Repr]]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
success[T](s: Success[_, Elem, Repr], value: T, index: Int, traceParsers: Set[Parser[_, Elem, Repr]], cut: Boolean): Success[T, Elem, Repr]
Prepares a success object to be returned.
Prepares a success object to be returned.
- s
The existing success object, usually taken from ParseCtx to avoid allocation overhead.
- value
The value that this parser succeeded with
- index
The index of the parser *after* having successfully parsed part of the input
- traceParsers
Any parsers which failed at the current index in the creation of this success. Even though this parser succeeded, failures inside sub-parsers must be reported to ensure proper error reporting.
- cut
Whether the parse crossed a cut and should prevent backtracking
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )