genCodeLine("{");
genCodeLine("    clear();");
genCodeLine("    errorHandler = new ErrorHandler();");
<BUG>genCodeLine("    errorHandlerCreated = true;");</BUG>
genCodeLine("    hasError = false;");
<BUG>genCodeLine("    token_source = tm;");
</BUG>
genCodeLine("    head = token = new Token();");
genCodeLine("    token->kind = 0;");
genCodeLine("    token->next = nullptr;");

genCodeLine("{");
genCodeLine("  clear();");
genCodeLine("}");
generateMethodDefHeader("void", cu_name, "ReInit(TokenManager* tokenManager)");
genCodeLine("{");
genCodeLine("    clear();");
genCodeLine("    errorHandler = new ErrorHandler();");
genCodeLine("    hasError = false;");
genCodeLine("    token_source = tokenManager;");
genCodeLine("    head = token = new Token();");
genCodeLine("    token->kind = 0;");
genCodeLine("    token->next = nullptr;");
