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

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parsley
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def force(): Unit

    Forces the compilation of a parser as opposed to the regular lazy evaluation.

  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def overflows(): Unit

    Provides an indicator that this parser is likely to stack-overflow

  9. 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 a Success or a Failure.

    input

    The input to run against

    returns

    Either a success with a value of type A or a failure with error message

  10. 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 a Success or a Failure.

    input

    The input to run against

    returns

    Either a success with a value of type A or a failure with error message

  11. def toString(): String
    Definition Classes
    Any
  12. def unsafe(): Unit

    Using this method signifies that the parser it is invoked on is impure and any optimisations which assume purity are disabled.

Inherited from AnyVal

Inherited from Any

Ungrouped