ParseResult
isSuccess
True if the parser was successful.
isFail
True if the parser has failed.
output
The output of the parser.
remainder
The part of the input that did not get parsed.
expected
A message that indicates what the failed parser expected to find at its position in the input. It contains the label that was attached to the parser.
got
A message indicating the input that the failed parser got at the point where it failed. It's only informational, so don't use this for processing. A future version might change this behaviour.
append
Append the output of two successful ParseResults. If one or both have failed, it returns the first failed ParseResult.
map
Map a function over the output
continueWith
Use the remainder of this ParseResult as the input for a parser.
throw
Throw a ParserFailure exception if the Parser failed, or complain if you're trying to throw a successful ParseResult.