Success
The success case of ParseResult
: contains the result and the remaining input.
Value parameters
- next
-
The parser's remaining input
- result
-
The parser's output
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ParseResult[T]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Returns the embedded result.
Returns the embedded result.
Attributes
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
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 methods
Attributes
- Inherited from:
- ParseResult
Attributes
- Inherited from:
- ParseResult
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product