示例#1
0
 public SemanticAnalyzer(List <StatementNode> AST)
 {
     this.AST         = AST;
     this.symbolTable = new SymbolTable();
     this.errors      = new List <Error>();
 }
示例#2
0
 object IVisitor <object> .visit(IdNode node)
 {
     return(SymbolTable.lookup(node.value));
 }