Exemple #1
0
void SoyFunc::accept(ASTVisitor& visitor)
{
	visitor.visit(*this);
	for(auto it = children.begin() ; it != children.end() ; ++it)
		(*it)->accept(visitor);

}
Exemple #2
0
void testparse(char *file)
{
   if(!newfile(file)) return;
   //symbolTable.pushScope();
   yyparse();
   ASTVisitor visitor;
   visitor.visit(astRoot);
   //ASTCGen cgen;
   //cout << cgen.visit(astRoot) << endl;
   TypeChecker typecheck;
   typecheck.visit(astRoot);
   //delete symbolTable.popScope();

}
 void VariableNode::accept(ASTVisitor& visitor) {
     visitor.visit(*this);
 }
Exemple #4
0
void ASTRevokePriv::accept(ASTVisitor &v)
{
    v.addToPath(this);
    v.visit(*this);
    v.removeFromPath(this);
}
void ReturnNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
void BlockStatementNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
void UnaryNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
void IntegerNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
void FuncallNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
Exemple #10
0
void Declaration::accept(ASTVisitor &v) { v.visit(*this); }
Exemple #11
0
void LoopStatement::accept(ASTVisitor &v) { v.visit(*this); }
 void TernaryOperatorNode::accept(ASTVisitor& visitor) {
     visitor.visit(*this);
 }
Exemple #13
0
 void UnionNode::accept(ASTVisitor& visitor) {
     visitor.visit(*this);
 }
Exemple #14
0
void ASTElementTest::accept(ASTVisitor &v)
{
    v.addToPath(this);
    v.visit(*this);
    v.removeFromPath(this);
}
 void ParamAnnotationNode::accept(ASTVisitor& visitor) {
     visitor.visit(*this);
 }
Exemple #16
0
void ASTDropIndex::accept(ASTVisitor &v)
{
    v.addToPath(this);
    v.visit(*this);
    v.removeFromPath(this);
}
void VarInferTypeDeclarationNode::accept(ASTVisitor& visitor) { visitor.visit(this); }
Exemple #18
0
void ExpressionStatement::accept(ASTVisitor &v) { v.visit(*this); }
Exemple #19
0
void BooleanNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
Exemple #20
0
void ReturnStatement::accept(ASTVisitor &v) { v.visit(*this); }
Exemple #21
0
void AssignmentNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
Exemple #22
0
void ScopeStatement::accept(ASTVisitor &v) { v.visit(*this); }
Exemple #23
0
void FunctionDefNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
Exemple #24
0
void ASTDefNamespaceDecl::accept(ASTVisitor &v)
{
    v.addToPath(this);
    v.visit(*this);
    v.removeFromPath(this);
}
Exemple #25
0
void DoWhileStatementNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
		void ReturnStatement::accept(ASTVisitor& visitor) const
		{
			visitor.visit(std::static_pointer_cast<ReturnStatement const>(shared_from_this()));
		}
Exemple #27
0
void VarNode::accept( ASTVisitor& visitor ) {
  visitor.visit( (*this) );
}
Exemple #28
0
void ForInitializer::accept(ASTVisitor& visitor)
{
	visitor.visit(*this);
	for(auto it = children.begin() ; it != children.end() ; ++it)
		(*it)->accept(visitor);
}
void StringNode::accept(ASTVisitor& visitor) { visitor.visit(this); }
void TemplateFunctionNode::accept(ASTVisitor& visitor) { visitor.visit(this); }