SOps

object SOps

Helper object to build values of Ops[A, B], for precedence parsing with subtyped data-structures.

Since:

3.0.0

class Object
trait Matchable
class Any
SOps.type

Value members

Concrete methods

def apply[B, A <: B](fixity: Fixity)(ops: Parsley[SOp[A, B]]*): Ops[A, B]

'''NOTE''': Currently a bug in scaladoc incorrect displays this functions type, it should be: fixity.SOp[A, B], NOT SOp[A, B]. 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.SOp[A, B], NOT SOp[A, B]. 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 parameters:
A

The base type consumed by the operators

B

The type produced/consumed by the operators, must be a supertype of A

Value parameters:
fixity

The fixity of the operators described. See Fixity

ops

The operators themselves, in varargs

Since:

3.0.0

Note:

The order of types in this method is reversed compared with GOps.apply, this is due to a Scala typing issue.