void PrintASTVisitor::visit(VarDeclNode& node) { std::cout << indent() << "VarDeclNode: " << node.name() << '\n'; ++indent_; }
void PrintEquelleASTVisitor::visit(VarDeclNode& node) { std::cout << indent() << node.name() << " : "; }
VarDeclNode* handleDeclaration(const std::string& name, TypeNode* type) { VarDeclNode* node = new VarDeclNode(name, type); node->setLocation(FileLocation(yylineno)); return node; }