Error
The fatal failure case of ParseResult: contains an error-message and the remaining input. No back-tracking is done when a parser returns an Error.
Value parameters
- msg
-
An error message string describing the error.
- next
-
The parser's unconsumed input at the point where the error occurred.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass NoSuccessclass ParseResult[Nothing]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Inherited methods
Attributes
- Inherited from:
- NoSuccess
Attributes
- Inherited from:
- NoSuccess
Returns the embedded result.
Attributes
- Inherited from:
- ParseResult
Attributes
- Inherited from:
- ParseResult
Functional composition of ParseResults.
Functional composition of ParseResults.
Value parameters
- f
-
the function to be lifted over this result
Attributes
- Returns
-
fapplied to the result of thisParseResult, packaged up as a newParseResult - Inherited from:
- NoSuccess
Partial functional composition of ParseResults.
Partial functional composition of ParseResults.
Value parameters
- error
-
a function that takes the same argument as
fand produces an error message to explain whyfwasn't applicable (it is called when this is the case) - f
-
the partial function to be lifted over this result
Attributes
- Returns
-
if
ff is defined at the result in thisParseResult,fapplied to the result of thisParseResult, packaged up as a newParseResult. Iffis not defined,Failure. - Inherited from:
- NoSuccess
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Inherited fields
Attributes
- Inherited from:
- NoSuccess