amend YaccCodeGenerator.cpp