Inherits java::io::Serializable.
Public Member Functions | |
Scope (Scope parent) | |
void | addSymbol (Symbol s) |
Symbol | resolve (String name) |
String | toString () |
Protected Attributes | |
Scope | parent |
Hashtable | symbols = new Hashtable() |
A set of symbols (type defs and/or variables)
Scope.Scope | ( | Scope | parent | ) |
void Scope.addSymbol | ( | Symbol | s | ) |
References Symbol.getName(), and symbols.
Referenced by SymtabPhase.constantDefinition(), SymtabPhase.parameterGroup(), SymtabPhase.programHeading(), and SymtabPhase.variableDeclaration().
Symbol Scope.resolve | ( | String | name | ) |
Scope Scope.parent [protected] |
Referenced by resolve(), and toString().
Hashtable Scope.symbols = new Hashtable() [protected] |
Referenced by addSymbol(), resolve(), and toString().