SOps
Helper object to build values of Ops[A, B]
, for precedence parsing with subtyped data-structures.
Helper object to build values of Ops[A, B]
, for precedence parsing with subtyped data-structures.
- Since
3.0.0
Value members
Concrete methods
'''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 Params
- A
The base type consumed by the operators
- B
The type produced/consumed by the operators, must be a supertype of
A
- Value Params
- 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.