Failure
The failure case of ParseResult
: contains an error-message and the remaining input. Parsing will back-track when a failure occurs.
Value parameters
- msg
-
An error message string describing the failure.
- next
-
The parser's unconsumed input at the point where the failure 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
-
f
applied 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
f
and produces an error message to explain whyf
wasn't applicable (it is called when this is the case) - f
-
the partial function to be lifted over this result
Attributes
- 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
. - Inherited from:
- NoSuccess
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Inherited fields
Attributes
- Inherited from:
- NoSuccess