Packages

o

org.kiama.example.grammar

GrammarTree

object GrammarTree

Simple context-free grammar abstract syntax.

Source
GrammarTree.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GrammarTree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class EmptyProdList () extends ProdList with Product with Serializable

    Empty symbol list.

  2. case class EmptySymbolList () extends SymbolList with Product with Serializable

    Empty symbol list.

  3. case class Grammar (startRule: Rule, rules: Seq[Rule]) extends GrammarTree with Product with Serializable

    Grammars.

  4. sealed abstract class GrammarTree extends TreeNode

    Abstract syntax tree nodes.

  5. case class NonEmptyProdList (head: Prod, tail: ProdList) extends ProdList with Product with Serializable

    Non-empty symbol list.

  6. case class NonEmptySymbolList (head: Symbol, tail: SymbolList) extends SymbolList with Product with Serializable

    Non-empty symbol list.

  7. sealed abstract class NonTerm extends GrammarTree

    A non-terminal reference.

  8. case class NonTermDef (name: String) extends NonTerm with Product with Serializable

    Non-terminal defining occurrence.

  9. case class NonTermSym (nt: NonTermUse) extends Symbol with Product with Serializable

    Non-terminal symbol.

  10. case class NonTermUse (name: String) extends NonTerm with Product with Serializable

    Non-terminal applied occurrence.

  11. case class Prod (symbols: SymbolList) extends GrammarTree with Product with Serializable

    Production.

  12. sealed abstract class ProdList extends GrammarTree

    Production lists.

  13. case class Rule (lhs: NonTermDef, rhs: ProdList) extends GrammarTree with Product with Serializable

    Production rules.

  14. sealed abstract class Symbol extends GrammarTree

    Grammar symbols.

  15. sealed abstract class SymbolList extends GrammarTree

    Symbol lists.

  16. case class TermSym (name: String) extends Symbol with Product with Serializable

    Terminal symbol.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val EOI: TermSym

    End of input terminal assumed to appear at the end of any sentential form.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def mkProd(rhs: Symbol*): Prod

    Smart constructor for productions.

  14. def mkProdList(prods: Seq[Prod]): ProdList

    Smart constructor for production lists.

  15. def mkRule(lhs: NonTermDef, prods: Prod*): Rule

    Smart constructor for rules.

  16. def mkSymbolList(symbols: Seq[Symbol]): SymbolList

    Smart constructor for symbol lists.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped