public override void ResolveNames(LexicalScope scope) { if (this.exp != null) { this.exp.ResolveNames(scope); } }
public override void ResolveNames(LexicalScope scope) { this.AddToSymbolTable(scope); foreach (LocalVariable localVariable in this.localVariables) { localVariable.ResolveNames(scope); } }
public override void ResolveNames(LexicalScope scope) { this.symboltable = new LexicalScope(scope); foreach (Statement statement in this.statements) { statement.ResolveNames(this.symboltable); } }
public override void ResolveNames(LexicalScope scope) { this.symboltable = new LexicalScope(scope); foreach (Declaration declaration in this.declarations) { declaration.ResolveNames(this.symboltable); } }
public override void ResolveNames(LexicalScope scope) { if (scope != null) { this.declaration = scope.Resolve(this.name); } if (this.declaration == null) { Console.WriteLine("Error : Undefined identifier {0}\n", this.name); throw new Exception("Undefined identifier"); } }
public override void ResolveNames(LexicalScope scope) { this.AddToSymbolTable(scope); this.symboltable = new LexicalScope(scope); this.result.ResolveNames(this.symboltable); foreach (FormalParameter formalParameter in this.formalParameters) { formalParameter.ResolveNames(this.symboltable); } this.statement.ResolveNames(this.symboltable); }
public override void ResolveNames(LexicalScope scope) { foreach (Expression fi in this.forinit) { fi.ResolveNames(scope); } if (this.exp != null) { this.exp.ResolveNames(scope); } foreach (Expression up in this.updates) { up.ResolveNames(scope); } }
public override void ResolveNames(LexicalScope scope) { }
public override void ResolveNames(LexicalScope scope) { this.lhs.ResolveNames(scope); this.rhs.ResolveNames(scope); }
public override void AddToSymbolTable(LexicalScope scope) { scope.Add(className, this); }
public abstract void AddToSymbolTable(LexicalScope scope);
public override void AddToSymbolTable(LexicalScope scope) { scope.Add(this.methodName, this); }
public override void ResolveNames(LexicalScope scope) { this.AddToSymbolTable(scope); this.type.ResolveNames(scope); }
public override void ResolveNames(LexicalScope scope) { this.declaration.ResolveNames(scope); }
public abstract void ResolveNames(LexicalScope scope);
public LexicalScope(LexicalScope parent) { this.symbol_table = new Dictionary <string, Declaration>(); this.parent = parent; }
public override void AddToSymbolTable(LexicalScope scope) { }