Attempts to evaluate the specified expression, wrapping errors in a ParseError.IOError.
Attempts to evaluate the specified expression, wrapping errors in a ParseError.IOError.
scala> def f: Int = sys.error("something bad happened") scala> ParseResult.io(f) res0: ParseResult[Int] = Left(IOError: something bad happened)
Evaluates the specified by-name parameter and passes it to the specified parsing function, wrapping any error along the way in a failure.
Attempts to evaluate the specified expression, wrapping errors in a ParseError.SyntaxError.
Attempts to evaluate the specified expression, wrapping errors in a ParseError.SyntaxError.
scala> def f: Int = sys.error("something bad happened") scala> ParseResult.syntax(f) res0: ParseResult[Int] = Left(SyntaxError: something bad happened)
Provides instance creation methods for ParseResult.