public ASTVisitor(StatementList ast) { this.linkNodes = new List <Node>(); this._cfg = new CFGEntry(); this.currentNode = this._cfg; ast.accept(this); CFGExit exit = new CFGExit(); if (this.linkNodes.Count > 0) { this.currentNode = new CFGExit(); linkParentNodes(); } else { this.currentNode.add(exit); } }
public DDGVisitor(StatementList ast) { _errors = new List <ParseException>(); ast.accept(this); }
public CFGVisitor(StatementList ast) { _previousStatements = new Queue <Statement>(); _errors = new List <ParseException>(); ast.accept(this); }