Пример #1
0
 public Declaration LookUp(string name)
 {
     if (table.ContainsKey(name))
     {
         return(table[name]);
     }
     else if (parent != null)
     {
         return(parent.LookUp(name));
     }
     else
     {
         throw new Exception();
     }
 }
Пример #2
0
 public override void AddToSymbolTable(SymbolTable parent)
 {
     parent.Add(this.className, this);
     parent.LookUp(this.className);
 }
Пример #3
0
 public override void AddToSymbolTable(SymbolTable parent)
 {
     parent.Add(this.localVariableDaclaratorName, this);
     parent.LookUp(this.localVariableDaclaratorName);
 }
Пример #4
0
 public override void AddToSymbolTable(SymbolTable parent)
 {
     parent.Add(parameterName, this);
     parent.LookUp(parameterName);
 }