Ops

object Ops

Helper object to build values of Ops[A, A], for monolithic precedence parsing

Since

2.2.0

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

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

'''NOTE''': Currently a bug in scaladoc incorrect displays this functions type, it should be: fixity.Op[A], NOT Op[A]. Builds an Ops object which represents many operators which act at the same precedence level, with a given fixity. Using path-dependent typing, the given fixity describes the shape of the operators expected. For more information see the Parsley wiki.

'''NOTE''': Currently a bug in scaladoc incorrect displays this functions type, it should be: fixity.Op[A], NOT Op[A]. Builds an Ops object which represents many operators which act at the same precedence level, with a given fixity. Using path-dependent typing, the given fixity describes the shape of the operators expected. For more information see the Parsley wiki.

Type Params
A

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

Value Params
fixity

The fixity of the operators described. See Fixity

ops

The operators themselves, in varargs

Since

2.2.0