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
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val EOI: TermSym

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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def mkProd(rhs: Symbol*): Prod

    Smart constructor for productions.

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

    Smart constructor for production lists.

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

    Smart constructor for rules.

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

    Smart constructor for symbol lists.

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped