complete division with visitor pattern and cpp-generator and java-generetor examples