private void visitBinaryArithmetic(Command node, Command leftSide, Command rightSide, String name)
    {
    	leftSide.accept(this);
        rightSide.accept(this);
        
        Type intType = new IntType(),
        	floatType = new FloatType(),
        	leftType = getType(leftSide),
        	rightType = getType(rightSide);
        if(!leftType.equivalent(rightType))
        	put(node, new ErrorType("Cannot add " + leftType + " with " + rightType + "."));
        else if(leftType.equivalent(intType))
        	put(node, intType);
        else if(leftType.equivalent(floatType))
        	put(node, floatType);
        else
        	put(node, new ErrorType("Cannot add " + leftType + " with " + rightType + "."));
    }