sealed abstract class NoSuccess extends ParseResult[Nothing]
A common super-class for unsuccessful parse results.
- Source
- Parsers.scala
- Alphabetic
- By Inheritance
- NoSuccess
- ParseResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
append[U >: Nothing](a: ⇒ ParseResult[U]): ParseResult[U]
- Definition Classes
- ParseResult
Concrete Value Members
-
def
filterWithError(p: (Nothing) ⇒ Boolean, error: (Nothing) ⇒ String, position: Input): ParseResult[Nothing]
- Definition Classes
- NoSuccess → ParseResult
-
def
flatMapWithNext[U](f: (Nothing) ⇒ (Input) ⇒ ParseResult[U]): ParseResult[U]
- Definition Classes
- NoSuccess → ParseResult
-
def
get: Nothing
Returns the embedded result.
Returns the embedded result.
- Definition Classes
- NoSuccess → ParseResult
-
def
getOrElse[B >: Nothing](default: ⇒ B): B
- Definition Classes
- ParseResult
-
def
isEmpty: Boolean
- Definition Classes
- ParseResult
-
def
map[U](f: (Nothing) ⇒ U): NoSuccess
Functional composition of ParseResults.
Functional composition of ParseResults.
- f
the function to be lifted over this result
- returns
f
applied to the result of thisParseResult
, packaged up as a newParseResult
- Definition Classes
- NoSuccess → ParseResult
-
def
mapPartial[U](f: PartialFunction[Nothing, U], error: (Nothing) ⇒ String): ParseResult[U]
Partial functional composition of ParseResults.
Partial functional composition of ParseResults.
- f
the partial function to be lifted over this result
- error
a function that takes the same argument as
f
and produces an error message to explain whyf
wasn't applicable (it is called when this is the case)- returns
if
f
f is defined at the result in thisParseResult
,f
applied to the result of thisParseResult
, packaged up as a newParseResult
. Iff
is not defined,Failure
.
- Definition Classes
- NoSuccess → ParseResult
- val msg: String
-
val
next: Input
- Definition Classes
- NoSuccess → ParseResult
-
val
successful: Boolean
- Definition Classes
- NoSuccess → ParseResult