final class Parsley[+A] extends AnyVal
This is the class that encapsulates the act of parsing and running an object of this class with runParser
will
parse the string given as input to runParser
.
Note: In order to construct an object of this class you must use the combinators; the class itself is abstract
- Version
1
- Alphabetic
- By Inheritance
- Parsley
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def force(): Unit
Forces the compilation of a parser as opposed to the regular lazy evaluation.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def overflows(): Unit
Provides an indicator that this parser is likely to stack-overflow
- def runParser(input: Array[Char]): Result[A]
This method is responsible for actually executing parsers.
This method is responsible for actually executing parsers. Given a
Parsley[A]
and an input array, will parse the string with the parser. The result is either aSuccess
or aFailure
.- input
The input to run against
- returns
Either a success with a value of type
A
or a failure with error message
- def runParser(input: String): Result[A]
This method is responsible for actually executing parsers.
This method is responsible for actually executing parsers. Given a
Parsley[A]
and an input string, will parse the string with the parser. The result is either aSuccess
or aFailure
.- input
The input to run against
- returns
Either a success with a value of type
A
or a failure with error message
- def toString(): String
- Definition Classes
- Any
- def unsafe(): Unit
Using this method signifies that the parser it is invoked on is impure and any optimisations which assume purity are disabled.