Success

case class Success[+T](result: T, next: Input) extends ParseResult[T]

The success case of ParseResult: contains the result and the remaining input.

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

Concrete methods

def append[U >: T](a: => ParseResult[U]): ParseResult[U]
def filterWithError(p: T => Boolean, error: T => String, position: Input): ParseResult[T]
def flatMapWithNext[U](f: T => Input => ParseResult[U]): ParseResult[U]
def get: T
def lastFailure: Option[Failure]
def map[U](f: T => U): ParseResult[U]
def mapPartial[U](f: PartialFunction[T, U], error: T => String): ParseResult[U]
override def toString: String

The toString method of a Success.

The toString method of a Success.

Definition Classes
Any

Inherited methods

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

Concrete fields

val successful: Boolean