Update codeGen.cpp

wrote processCode