Packages

  • package root
    Definition Classes
    root
  • package parsley
    Definition Classes
    root
  • package implicits

    This package contains various functionality that involve Scala's implicits mechanism.

    This package contains various functionality that involve Scala's implicits mechanism.

    This includes conversions from scala literals into parsers, as well as enabling new syntax on regular Scala values (such as Parsley's lift or zipped syntax). Automatic conversion to Parsley[Unit] is also supported within this package.

    Definition Classes
    parsley
  • object lift

    This module provides the "lift syntax", which enables a lift combinator on functions of arities up to 22, applying the function across the results of several parsers.

    This module provides the "lift syntax", which enables a lift combinator on functions of arities up to 22, applying the function across the results of several parsers.

    Definition Classes
    implicits
    Example:
    1. scala> import parsley.character.char
      scala> import parsley.implicits.lift.{Lift2, Lift3}
      scala> case class Add(x: Int, y: Int)
      scala> val p = Add.lift(char('a') #> 4, char('b') #> 5)
      scala> p.parse("ab")
      val res0 = Success(Add(4, 5))
      scala> val f = (x: Int, y: Int, z: Int) => x * y + z
      scala> val q = f.lift(char('a') #> 3, char('b') #> 2, char('c') #> 5)
      scala> q.parse("abc")
      val res1 = Success(11)
      scala> q.parse("ab")
      val res2 = Failure(..)
    Since

    3.0.0

    Note

    a limitation of this syntax is that it requires the function's type to be fully known. For a version of this syntax that behaves better with type inference, see zipped.

  • Lift0
  • Lift1
  • Lift10
  • Lift11
  • Lift12
  • Lift13
  • Lift14
  • Lift15
  • Lift16
  • Lift17
  • Lift18
  • Lift19
  • Lift2
  • Lift20
  • Lift21
  • Lift22
  • Lift3
  • Lift4
  • Lift5
  • Lift6
  • Lift7
  • Lift8
  • Lift9

implicit final class Lift18[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, R] extends AnyVal

This class enables the lift syntax on functions of arity eighteen.

Source
lift.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Lift18
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Lift18(f: (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) => R)

    This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

    This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

    f

    the function to apply to the parsers.

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 getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def lift(p1: Parsley[T1], p2: => Parsley[T2], p3: => Parsley[T3], p4: => Parsley[T4], p5: => Parsley[T5], p6: => Parsley[T6], p7: => Parsley[T7], p8: => Parsley[T8], p9: => Parsley[T9], p10: => Parsley[T10], p11: => Parsley[T11], p12: => Parsley[T12], p13: => Parsley[T13], p14: => Parsley[T14], p15: => Parsley[T15], p16: => Parsley[T16], p17: => Parsley[T17], p18: => Parsley[T18]): Parsley[R]

    This combinator executes each of its argument parsers in turn and applies this function to their results.

    This combinator executes each of its argument parsers in turn and applies this function to their results.

    Each of the given parsers is executed in sequence, each yielding a result. So long as every parser succeeded, the whole combinator succeeds and each of the results is fed into this function. The result of this application is returned by the combinator. If any of the given parsers fails then the whole combinator fails.

    returns

    a parser that applies this function to the results of all the given parsers.

    See also

    lift18

  8. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped