sealed abstract class Prec[+A] extends AnyRef
This class is the base type for precedence tables.
For more complex expression parser types Prec can be used to
describe the precedence table whilst preserving the intermediate
structure between each level.
The base of the table will always be an Atoms, and each layer
built on top of the last using either the :+ or +: methods.
- A
the type of structure produced by the list of levels.
- Source
- Levels.scala
- Since
4.0.0
- Alphabetic
- By Inheritance
- Prec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
+:[Aʹ >: A, B](ops: Ops[Aʹ, B]): Prec[B]
This method adds a new layer to this precedence table on the left, in a weakest-to-tightest ordering.
This method adds a new layer to this precedence table on the left, in a weakest-to-tightest ordering.
This method associates to the right (with this table on the right!), so right-most applications are tighter binding (closer to the atoms) than those to the left. It should not be mixed with
:+, which would be confusing and less predictable.- Aʹ
a weakened version of the type generated by this table, to increase flexibility.
- B
the result type of the new table.
- ops
the operators that make up the new level on the table.
- returns
a new table that incorporates the operators and atoms in this table, along with extra
ops.
-
final
def
:+[Aʹ >: A, B](ops: Ops[Aʹ, B]): Prec[B]
This method adds a new layer to this precedence table on the right, in a tightest-to-weakest ordering.
This method adds a new layer to this precedence table on the right, in a tightest-to-weakest ordering.
This method associates to the left, so left-most applications are tighter binding (closer to the atoms) than those to the right. It should not be mixed with
+:, which would be confusing and less predictable.- Aʹ
a weakened version of the type generated by this table, to increase flexibility.
- B
the result type of the new table.
- ops
the operators that make up the new level on the table.
- returns
a new table that incorporates the operators and atoms in this table, along with extra
ops.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()