Levels

sealed trait Levels[-A, +B]

For more complex expression parser types Levels can be used to describe the precedence table whilst preserving the intermediate structure between each level.

For more complex expression parser types Levels can be used to describe the precedence table whilst preserving the intermediate structure between each level.

Type Params
A

The base type accepted by this list of levels

B

The type of structure produced by the list of levels

Since

3.0.0

class Object
trait Matchable
class Any
class Level[A, B, C]

Value members

Concrete methods

final def +:[C](ops: Ops[B, C]): Levels[A, C]

Builds a larger parser precedence table from weakest to strongest

Builds a larger parser precedence table from weakest to strongest

Type Params
C

The new result type for the larger table

Value Params
ops

The operators that transform the next, stronger, layer into the new result

final def :+[C](ops: Ops[B, C]): Levels[A, C]

Builds a larger precedence table from strongest to weakest

Builds a larger precedence table from strongest to weakest

Type Params
C

The new result type for the larger table

Value Params
ops

The operators that transform the previous, stronger, layer into the new result