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