org.kiama.example.oberon0.L4

SymbolTable

trait SymbolTable extends SymbolTable

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SymbolTable
  2. SymbolTable
  3. SymbolTable
  4. SymbolTable
  5. Environments
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Type Members

  1. case class ArrayType (size: Int, elemtype: Type) extends Type with Product with Serializable

    An array type with the given size and element type.

  2. trait Builtin extends Named

    Marker trait for all built-in entities.

  3. case class BuiltinProc (ident: String, params: List[ParamInfo]) extends Entity with NamedEntity with Builtin with Product with Serializable

    A built-in procedure with its parameter information.

  4. case class BuiltinType (ident: String) extends Type with Named with Builtin with Product with Serializable

    A built-in type with an implicit definition that the compiler must have special knowledge about.

  5. case class Constant (ident: String, decl: ConstDecl) extends Entity with NamedEntity with Product with Serializable

    A user-defined constant entity represented by a constant declaration.

  6. class Entity extends AnyRef

    An entity that represents some program object.

  7. type Environment = Stack[Scope]

    An environment is a stack of scopes with the innermost scope on the top.

    An environment is a stack of scopes with the innermost scope on the top.

    Definition Classes
    Environments
  8. trait ErrorEntity extends Entity

    An entity that represents an error situation.

  9. case class Field (ident: String, tipe: Type) extends Entity with Product with Serializable

    A record field.

  10. case class IntegerValue (ident: String, tipe: Type, value: Int) extends Entity with NamedEntity with Builtin with Product with Serializable

    A built-in value of some type that is represented by a particular integer value.

  11. case class Module (ident: String, decl: ModuleDecl) extends Entity with NamedEntity with Product with Serializable

    A user-defined module represented by a module declaration.

  12. trait Named extends AnyRef

    Support for unique ids for named things.

  13. trait NamedEntity extends Entity with Named

    A named entity.

  14. case class ParamInfo (mode: Mode, ident: String, tipe: Type) extends Product with Serializable

    Information about a particular parameter.

  15. case class Parameter (mode: Mode, varr: Variable) extends Entity with NamedEntity with Product with Serializable

    A parameter is a variable augmented with a passing mode.

  16. case class Procedure (ident: String, decl: ProcDecl) extends Entity with NamedEntity with Product with Serializable

    A procedure entity represented by a procedure declaration.

  17. case class RecordType (fields: List[Field]) extends Type with Product with Serializable

    A record with the given fields.

  18. type Scope = Map[String, Entity]

    A scope maps identifiers to entities.

    A scope maps identifiers to entities.

    Definition Classes
    Environments
  19. class Type extends Entity

    An entity representing by a user-provided type declaration.

  20. case class UserType (ident: String, tipe: TypeDecl) extends Type with Named with Product with Serializable

    A user-defined type.

  21. case class Variable (ident: String, tipe: TypeDef) extends Entity with NamedEntity with Product with Serializable

    A variable entity including a reference to its types' definition.

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. object MultipleEntity extends Entity with ErrorEntity with Product with Serializable

    A entity represented by names for whom we have seen more than one declaration so we are unsure what is being represented.

  7. object Named extends AnyRef

    Static support for entity names.

  8. object UnknownEntity extends Entity with ErrorEntity with Product with Serializable

    An unknown entity, represented by names whose declarations are missing.

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. lazy val booleanType : BuiltinType

    Built-in Boolean type.

    Built-in Boolean type.

    Definition Classes
    SymbolTable
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def defenv : Environment

    The default environment.

    The default environment.

    Definition Classes
    SymbolTable
  13. def defenvPairs : List[(String, Entity)]

    The default environment with pre-defined procedures added.

    The default environment with pre-defined procedures added.

    Definition Classes
    SymbolTableSymbolTable
  14. def define (env: Environment, i: String, e: Entity): Environment

    Define i to be e in the current scope of env, raising an error if the environment is empty.

    Define i to be e in the current scope of env, raising an error if the environment is empty.

    Definition Classes
    Environments
  15. def enter (env: Environment): Environment

    Enter a new empty scope nested within the given environment.

    Enter a new empty scope nested within the given environment.

    Definition Classes
    Environments
  16. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. lazy val falseConstant : IntegerValue

    Built-in false constant.

    Built-in false constant.

    Definition Classes
    SymbolTable
  19. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hasField (t: Type, f: String): Boolean

    Is a given type a record type containing a field called f?

  22. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  23. lazy val integerType : BuiltinType

    Built-in integer type.

    Built-in integer type.

    Definition Classes
    SymbolTable
  24. def isArray (e: Entity): Boolean

    Return true if the entity is erroneous or is an array.

  25. def isBoolean (e: Type): Boolean

    Return true if the given type is Boolean or an unknown type.

    Return true if the given type is Boolean or an unknown type.

    Definition Classes
    SymbolTable
  26. def isConstant (e: Entity): Boolean

    Return true if the entity is erroneous or is a constant.

    Return true if the entity is erroneous or is a constant.

    Definition Classes
    SymbolTable
  27. def isDefinedInEnv (env: Environment, i: String): Boolean

    Say whether i is defined in any scope of env.

    Say whether i is defined in any scope of env.

    Definition Classes
    Environments
  28. def isDefinedInInner (env: Environment, i: String): Boolean

    Say whether i is defined in an innermost scope of env (i.

    Say whether i is defined in an innermost scope of env (i.e., in the current scope).

    Definition Classes
    Environments
  29. def isDefinedInOuter (env: Environment, i: String): Boolean

    Say whether i is defined in an outer scope of env (i.

    Say whether i is defined in an outer scope of env (i.e., not in the current scope).

    Definition Classes
    Environments
  30. def isDefinedInScope (scope: Scope, i: String): Boolean

    Say whether i is defined in the given scope.

    Say whether i is defined in the given scope.

    Definition Classes
    Environments
  31. def isDefinedInScope (env: Environment, i: String): Boolean

    Say whether i is defined in the current scope of env.

    Say whether i is defined in the current scope of env.

    Definition Classes
    Environments
  32. def isError (e: Entity): Boolean

    Return true if the entity is an error, false otherwise.

    Return true if the entity is an error, false otherwise.

    Definition Classes
    SymbolTable
  33. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  34. def isInteger (e: Type): Boolean

    Return true if the given type is integer or an unknown type.

    Return true if the given type is integer or an unknown type.

    Definition Classes
    SymbolTable
  35. def isModule (e: Entity): Boolean

    Return true if the entity is erroneous or is a module.

    Return true if the entity is erroneous or is a module.

    Definition Classes
    SymbolTable
  36. def isNotArray (e: Entity): Boolean

    Return true if the entity is erroneous or is not an array.

  37. def isNotRecord (e: Entity): Boolean

    Return true if the entity is erroneous or is not a record.

  38. def isRecord (e: Entity): Boolean

    Return true if the entity is erroneous or is a record.

  39. def isType (e: Entity): Boolean

    Return true if the entity is erroneous or is a type.

    Return true if the entity is erroneous or is a type.

    Definition Classes
    SymbolTable
  40. def isVariable (e: Entity): Boolean

    Parameters are variables too.

    Parameters are variables too.

    Definition Classes
    SymbolTableSymbolTable
  41. def leave (env: Environment): Environment

    Leave the outermost scope of the given environment, raising an error if the environment is empty.

    Leave the outermost scope of the given environment, raising an error if the environment is empty.

    Definition Classes
    Environments
  42. def lookup (env: Environment, i: String, e: Entity, scope: Boolean = false): Entity

    Look up i in env, returning the mapped Entity if there is one, otherwise return e.

    Look up i in env, returning the mapped Entity if there is one, otherwise return e. If scope is true, just search the innermost scope, otherwise search outwards in all scopes, returning the first Entity found, if any.

    Definition Classes
    Environments
  43. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  46. lazy val readProc : BuiltinProc

    The built-in Read procedure.

    The built-in Read procedure.

    Definition Classes
    SymbolTable
  47. def resetEnvironments : Unit

    Reset the environment module.

    Reset the environment module.

    Definition Classes
    Environments
  48. def rootenv (bindings: (String, Entity)*): Environment

    Create a root environment, i.

    Create a root environment, i.e., one that has a single scope containing the given bindings.

    Definition Classes
    Environments
  49. def synchronized [T0] (arg0: ⇒ T0): T0

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

    Definition Classes
    AnyRef → Any
  51. lazy val trueConstant : IntegerValue

    Built-in true constant.

    Built-in true constant.

    Definition Classes
    SymbolTable
  52. lazy val unknownType : BuiltinType

    A type that is unknown, eg because the typed thing is erroneously defined.

    A type that is unknown, eg because the typed thing is erroneously defined.

    Definition Classes
    SymbolTable
  53. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  56. lazy val writeProc : BuiltinProc

    The built-in Write procedure.

    The built-in Write procedure.

    Definition Classes
    SymbolTable
  57. lazy val writelnProc : BuiltinProc

    The built-in WriteLn procedure.

    The built-in WriteLn procedure.

    Definition Classes
    SymbolTable

Inherited from SymbolTable

Inherited from SymbolTable

Inherited from SymbolTable

Inherited from Environments

Inherited from AnyRef

Inherited from Any