Packages

  • package root

    This is the documentation for Parsley.

    This is the documentation for Parsley.

    Package structure

    The parsley package contains the Parsley class, as well as the Result, Success, and Failure types. In addition to these, it also contains the following packages and "modules" (a module is defined as being an object which mocks a package):

    • parsley.Parsley contains the bulk of the core "function-style" combinators.
    • parsley.combinator contains many helpful combinators that simplify some common parser patterns.
    • parsley.character contains the combinators needed to read characters and strings, as well as combinators to match specific sub-sets of characters.
    • parsley.debug contains debugging combinators, helpful for identifying faults in parsers.
    • parsley.expr contains the following sub modules:
      • parsley.expr.chain contains combinators used in expression parsing
      • parsley.expr.precedence is a builder for expression parsers built on a precedence table.
      • parsley.expr.infix contains combinators used in expression parsing, but with more permissive types than their equivalents in chain.
      • parsley.expr.mixed contains combinators that can be used for expression parsing, but where different fixities may be mixed on the same level: this is rare in practice.
    • parsley.syntax contains several implicits to add syntactic sugar to the combinators. These are sub-categorised into the following sub modules:
      • parsley.syntax.character contains implicits to allow you to use character and string literals as parsers.
      • parsley.syntax.lift enables postfix application of the lift combinator onto a function (or value).
      • parsley.syntax.zipped enables boths a reversed form of lift where the function appears on the right and is applied on a tuple (useful when type inference has failed) as well as a .zipped method for building tuples out of several combinators.
      • parsley.syntax.extension contains syntactic sugar combinators exposed as implicit classes.
    • parsley.errors contains modules to deal with error messages, their refinement and generation.
    • parsley.lift contains functions which lift functions that work on regular types to those which now combine the results of parsers returning those same types. these are ubiquitous.
    • parsley.ap contains functions which allow for the application of a parser returning a function to several parsers returning each of the argument types.
    • parsley.state contains combinators that interact with the context-sensitive functionality in the form of state.
    • parsley.token contains the Lexer class that provides a host of helpful lexing combinators when provided with the description of a language.
    • parsley.position contains parsers for extracting position information.
    • parsley.generic contains some basic implementations of the Parser Bridge pattern (see Design Patterns for Parser Combinators in Scala, or the parsley wiki): these can be used before more specialised generic bridge traits can be constructed.
    Definition Classes
    root
  • package scala
    Definition Classes
    root
  • package collection
p

scala

package scala

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scala
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ::[A] = scala.collection.immutable.::[A]
  2. type AbstractMethodError = java.lang.AbstractMethodError
  3. type AnyRef = AnyRef
  4. type ArrayIndexOutOfBoundsException = java.lang.ArrayIndexOutOfBoundsException
  5. type BigDecimal = scala.math.BigDecimal
  6. type BigInt = scala.math.BigInt
  7. type BufferedIterator[+A] = scala.collection.BufferedIterator[A]
  8. type ClassCastException = java.lang.ClassCastException
  9. type Either[+A, +B] = scala.util.Either[A, B]
  10. type Equiv[T] = scala.math.Equiv[T]
  11. type Error = java.lang.Error
  12. type Exception = java.lang.Exception
  13. type Fractional[T] = scala.math.Fractional[T]
  14. type IllegalArgumentException = java.lang.IllegalArgumentException
  15. type IndexOutOfBoundsException = java.lang.IndexOutOfBoundsException
  16. type IndexedSeq[+A] = scala.collection.IndexedSeq[A]
  17. type Integral[T] = scala.math.Integral[T]
  18. type InterruptedException = java.lang.InterruptedException
  19. type Iterable[+A] = scala.collection.Iterable[A]
  20. type Iterator[+A] = scala.collection.Iterator[A]
  21. type Left[+A, +B] = scala.util.Left[A, B]
  22. type List[+A] = scala.collection.immutable.List[A]
  23. type NoSuchElementException = java.util.NoSuchElementException
  24. type NullPointerException = java.lang.NullPointerException
  25. type NumberFormatException = java.lang.NumberFormatException
  26. type Numeric[T] = scala.math.Numeric[T]
  27. type Ordered[T] = scala.math.Ordered[T]
  28. type Ordering[T] = scala.math.Ordering[T]
  29. type PartialOrdering[T] = scala.math.PartialOrdering[T]
  30. type PartiallyOrdered[T] = scala.math.PartiallyOrdered[T]
  31. type Range = scala.collection.immutable.Range
  32. type Right[+A, +B] = scala.util.Right[A, B]
  33. type RuntimeException = java.lang.RuntimeException
  34. type Seq[+A] = scala.collection.Seq[A]
  35. type Stream[+A] = scala.collection.immutable.Stream[A]
  36. type StringBuilder = scala.collection.mutable.StringBuilder
  37. type StringIndexOutOfBoundsException = java.lang.StringIndexOutOfBoundsException
  38. type Throwable = java.lang.Throwable
  39. type Traversable[+A] = scala.collection.Traversable[A]
  40. type TraversableOnce[+A] = scala.collection.TraversableOnce[A]
  41. type UnsupportedOperationException = java.lang.UnsupportedOperationException
  42. type Vector[+A] = scala.collection.immutable.Vector[A]

Value Members

  1. val #::: scala.collection.immutable.Stream.#::.type
  2. val +:: scala.collection.+:.type
  3. val :+: scala.collection.:+.type
  4. val ::: scala.collection.immutable.::.type
  5. val AnyRef: Specializable
  6. val BigDecimal: scala.math.BigDecimal.type
  7. val BigInt: scala.math.BigInt.type
  8. val Either: scala.util.Either.type
  9. val Equiv: scala.math.Equiv.type
  10. val Fractional: scala.math.Fractional.type
  11. val IndexedSeq: scala.collection.IndexedSeq.type
  12. val Integral: scala.math.Integral.type
  13. val Iterable: scala.collection.Iterable.type
  14. val Iterator: scala.collection.Iterator.type
  15. val Left: scala.util.Left.type
  16. val List: scala.collection.immutable.List.type
  17. val Nil: scala.collection.immutable.Nil.type
  18. val Numeric: scala.math.Numeric.type
  19. val Ordered: scala.math.Ordered.type
  20. val Ordering: scala.math.Ordering.type
  21. val Range: scala.collection.immutable.Range.type
  22. val Right: scala.util.Right.type
  23. val Seq: scala.collection.Seq.type
  24. val Stream: scala.collection.immutable.Stream.type
  25. val StringBuilder: scala.collection.mutable.StringBuilder.type
  26. val Traversable: scala.collection.Traversable.type
  27. val Vector: scala.collection.immutable.Vector.type

Inherited from AnyRef

Inherited from Any

Ungrouped