Packages

  • package root
    Definition Classes
    root
  • package parsley
    Definition Classes
    root
  • package expr

    This package contains various functionality relating to the parsing of expressions..

    This package contains various functionality relating to the parsing of expressions..

    This includes the "chain" combinators, which tackle the left-recursion problem and allow for the parsing and combining of operators with values. It also includes functionality for constructing larger precedence tables, which may even vary the type of each layer in the table, allowing for strongly-typed expression parsing.

    Definition Classes
    parsley
  • Atoms
  • Fixity
  • GOps
  • InfixL
  • InfixN
  • InfixR
  • Ops
  • Postfix
  • Prec
  • Prefix
  • SOps
  • chain
  • infix
  • mixed
  • precedence

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Prec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def +:[Aʹ >: A, B](ops: Ops[, 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 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.

  4. final def :+[Aʹ >: A, B](ops: Ops[, 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 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.

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped