Success

case class Success[+T](result: T, next: Input) extends ParseResult[T]
The success case of ParseResult: contains the result and the remaining input.
Value Params
next
The parser's remaining input
result
The parser's output
trait Serializable
trait Product
trait Equals
class ParseResult[T]
class Object
trait Matchable
class Any

Value members

Methods

def lastFailure: Option[Failure]
def map[U](f: T => U): ParseResult[U]
def mapPartial[U](f: PartialFunction[T, U], error: T => String): ParseResult[U]
def filterWithError(p: T => Boolean, error: T => String, position: Input): ParseResult[T]
def append[U >: T](a: => ParseResult[U]): ParseResult[U]
def get: T
override def toString: String
The toString method of a Success.
Definition Classes
Any

Fields

val successful: Boolean

Inherited methods

def isEmpty: Boolean
Inhertied from
ParseResult
def getOrElse[B >: T](default: => B): B
Inhertied from
ParseResult
def productElementNames: Iterator[String]
Inhertied from
Product
def productIterator: Iterator[Any]
Inhertied from
Product