Ops

parsley.expr.Ops$
See theOps companion class
object Ops

This helper object is used to build values of Ops[A, A], for homogeneous precedence parsing.

Attributes

Since:

2.2.0

Companion:
class
Source:
Ops.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Ops.type

Members list

Concise view

Value members

Concrete methods

def apply[A](fixity: Fixity)(ops: Parsley[Op[A, A]]*): Ops[A, A]

This function builds an Ops object representing many operators found at the same precedence level, with a given fixity.

This function builds an Ops object representing many operators found at the same precedence level, with a given fixity.

The operators found on the level constructed by this function are homogeneous: the type of the level below must match the types of values produced at this level.

Using path-dependent typing, the given fixity describes the shape of the operators expected. For more information see the Parsley wiki.

Attributes

A

the type associated with the operators (which it consumes and produces)

fixity

the fixity of the operators described.

ops

The operators themselves, in varargs.

See also:
Since:

2.2.0

Note:

currently a bug in scaladoc incorrect displays this functions type, it should be: fixity.Op[A, A], NOT Op[A, A].

Source:
Ops.scala