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.
Attributes
- 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
. - Example
-
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').as(4), char('b').as(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').as(3), char('b').as(2), char('c').as(5)) scala> q.parse("abc") val res1 = Success(11) scala> q.parse("ab") val res2 = Failure(..)
- Source
- lift.scala
- Graph
-
- Supertypes
- Self type
-
lift.type
Members list
Type members
Classlikes
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
Value parameters
- x
-
the value to lift to the parser level.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity one: a flipped map
.
This class enables the lift
syntax on functions of arity one: a flipped map
.
Value parameters
- f
-
the function to apply to the result of the parser.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity ten.
This class enables the lift
syntax on functions of arity ten.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eleven.
This class enables the lift
syntax on functions of arity eleven.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twelve.
This class enables the lift
syntax on functions of arity twelve.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity thirteen.
This class enables the lift
syntax on functions of arity thirteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity fourteen.
This class enables the lift
syntax on functions of arity fourteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity fifteen.
This class enables the lift
syntax on functions of arity fifteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity sixteen.
This class enables the lift
syntax on functions of arity sixteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity seventeen.
This class enables the lift
syntax on functions of arity seventeen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eighteen.
This class enables the lift
syntax on functions of arity eighteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity nineteen.
This class enables the lift
syntax on functions of arity nineteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity two.
This class enables the lift
syntax on functions of arity two.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty.
This class enables the lift
syntax on functions of arity twenty.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty-one.
This class enables the lift
syntax on functions of arity twenty-one.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty-two.
This class enables the lift
syntax on functions of arity twenty-two.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity three.
This class enables the lift
syntax on functions of arity three.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity four.
This class enables the lift
syntax on functions of arity four.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity five.
This class enables the lift
syntax on functions of arity five.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity six.
This class enables the lift
syntax on functions of arity six.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity seven.
This class enables the lift
syntax on functions of arity seven.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eight.
This class enables the lift
syntax on functions of arity eight.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity nine.
This class enables the lift
syntax on functions of arity nine.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Implicits
Implicits
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
Value parameters
- x
-
the value to lift to the parser level.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity one: a flipped map
.
This class enables the lift
syntax on functions of arity one: a flipped map
.
Value parameters
- f
-
the function to apply to the result of the parser.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity ten.
This class enables the lift
syntax on functions of arity ten.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity eleven.
This class enables the lift
syntax on functions of arity eleven.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity twelve.
This class enables the lift
syntax on functions of arity twelve.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity thirteen.
This class enables the lift
syntax on functions of arity thirteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity fourteen.
This class enables the lift
syntax on functions of arity fourteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity fifteen.
This class enables the lift
syntax on functions of arity fifteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity sixteen.
This class enables the lift
syntax on functions of arity sixteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity seventeen.
This class enables the lift
syntax on functions of arity seventeen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity eighteen.
This class enables the lift
syntax on functions of arity eighteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity nineteen.
This class enables the lift
syntax on functions of arity nineteen.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity two.
This class enables the lift
syntax on functions of arity two.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity twenty.
This class enables the lift
syntax on functions of arity twenty.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity twenty-one.
This class enables the lift
syntax on functions of arity twenty-one.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity twenty-two.
This class enables the lift
syntax on functions of arity twenty-two.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity three.
This class enables the lift
syntax on functions of arity three.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity four.
This class enables the lift
syntax on functions of arity four.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity five.
This class enables the lift
syntax on functions of arity five.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity six.
This class enables the lift
syntax on functions of arity six.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity seven.
This class enables the lift
syntax on functions of arity seven.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity eight.
This class enables the lift
syntax on functions of arity eight.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala
This class enables the lift
syntax on functions of arity nine.
This class enables the lift
syntax on functions of arity nine.
Value parameters
- f
-
the function to apply to the parsers.
Attributes
- Constructor
-
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source
- lift.scala