object IVisitor <object> .visit(AssignmentNode node) { Node left = node.getLeft(); Node right = node.getRight(); left.accept(this); right.accept(this); checkSameType(left, right); return(null); }
object IVisitor <object> .visit(AssignmentNode node) { SymbolTable.assign(node.getLeft().value, node.getRight().accept(new Evaluator()).ToString()); return(null); }