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

case class Atoms[+A](atom0: Parsley[A], atoms: Parsley[A]*) extends Prec[A] with Product with Serializable

This class is the base of a precedence table.

Forms the base of a precedence table, requiring at least one atom to be provided. This first atom will be parsed first.

A

the type of the atoms.

atom0

the first atom found at the root of the precedence table.

atoms

any remaining atoms found at the root of the precedence table.

Source
Levels.scala
Since

4.0.0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Atoms
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Prec
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Atoms(atom0: Parsley[A], atoms: Parsley[A]*)

    atom0

    the first atom found at the root of the precedence table.

    atoms

    any remaining atoms found at the root of the precedence table.

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.

    Definition Classes
    Prec
  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.

    Definition Classes
    Prec
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val atom0: Parsley[A]
  8. val atoms: Parsley[A]*
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    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. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Prec[A]

Inherited from AnyRef

Inherited from Any

Ungrouped