NoSuccess

scala.util.parsing.combinator.Parsers.NoSuccess
See theNoSuccess companion object
sealed abstract class NoSuccess(val msg: String, val next: Input) extends ParseResult[Nothing]

A common super-class for unsuccessful parse results.

Attributes

Companion:
object
Graph
Supertypes
class ParseResult[Nothing]
class Object
trait Matchable
class Any
Known subtypes
class Error
class Failure

Members list

Concise view

Value members

Concrete methods

def filterWithError(p: Nothing => Boolean, error: Nothing => String, position: Input): ParseResult[Nothing]
def flatMapWithNext[U](f: Nothing => Input => ParseResult[U]): ParseResult[U]
def get: Nothing

Returns the embedded result.

Returns the embedded result.

Attributes

def map[U](f: Nothing => U): ParseResult[U]

Functional composition of ParseResults.

Functional composition of ParseResults.

Attributes

f

the function to be lifted over this result

Returns:

f applied to the result of this ParseResult, packaged up as a new ParseResult

def mapPartial[U](f: PartialFunction[Nothing, U], error: Nothing => String): ParseResult[U]

Partial functional composition of ParseResults.

Partial functional composition of ParseResults.

Attributes

error

a function that takes the same argument as f and produces an error message to explain why f wasn't applicable (it is called when this is the case)

f

the partial function to be lifted over this result

Returns:

if f f is defined at the result in this ParseResult, f applied to the result of this ParseResult, packaged up as a new ParseResult. If f is not defined, Failure.

Inherited methods

def append[U](a: => ParseResult[U]): ParseResult[U]

Attributes

Inherited from:
ParseResult
def getOrElse[B](default: => B): B

Attributes

Inherited from:
ParseResult

Attributes

Inherited from:
ParseResult

Concrete fields

val msg: String
override val next: Input