org.kiama.example.imperative

AST

object AST extends AnyRef

A simple imperative language abstract syntax designed for testing.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AST
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Type Members

  1. case class Add (l: Exp, r: Exp) extends Binary with Product with Serializable

    Addition expressions.

  2. case class Asgn (v: Var, e: Exp) extends Stmt with Product with Serializable

    Assignment statements.

  3. class Binary extends Exp

    Binary expressions.

  4. case class Div (l: Exp, r: Exp) extends Binary with Product with Serializable

    Division expressions.

  5. class Exp extends ImperativeNode

    Expressions.

  6. type Idn = String

    Identifiers are represented as strings.

  7. trait ImperativeNode extends Attributable

    Superclass of all imperative language tree node types.

  8. case class Mul (l: Exp, r: Exp) extends Binary with Product with Serializable

    Multiplication expressions.

  9. case class Neg (e: Exp) extends Exp with Product with Serializable

    Unary negation expressions.

  10. case class Null () extends Stmt with Product with Serializable

    Empty statements.

  11. case class Num (d: Double) extends Exp with Product with Serializable

    Numeric expressions.

  12. case class Seqn (ss: Seq[Stmt]) extends Stmt with Product with Serializable

    Statement sequences.

  13. class Stmt extends ImperativeNode

    Statements.

  14. case class Sub (l: Exp, r: Exp) extends Binary with Product with Serializable

    Subtraction expressions.

  15. case class Var (s: Idn) extends Exp with Product with Serializable

    Variable expressions.

  16. case class While (e: Exp, b: Stmt) extends Stmt with Product with Serializable

    While loops.

Value Members

  1. def != (arg0: AnyRef): Boolean

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def Add (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  7. def Asgn (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  8. def Div (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  9. def Mul (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  10. def Neg (s1: ⇒ Strategy): Strategy

  11. def Num (s1: ⇒ Strategy): Strategy

  12. def Seqn (s1: ⇒ Strategy): Strategy

  13. def Sub (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  14. def Var (s1: ⇒ Strategy): Strategy

  15. def While (s1: ⇒ Strategy, s2: ⇒ Strategy): Strategy

  16. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  17. def clone (): AnyRef

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  22. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  28. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any