
genCodeLine("  bool          errorHandlerCreated;");
genCodeLine("protected: ");</BUG>
genCodeLine("  bool          hasError;");
<BUG>genCodeLine("public: ");
genCodeLine("  void setErrorHandler(ErrorHandler *eh) {");
genCodeLine("    if (errorHandlerCreated) delete errorHandler;");
genCodeLine("    errorHandler = eh;");
genCodeLine("    errorHandlerCreated = false;");
genCodeLine("  }");
int tokenMaskSize = (tokenCount-1)/32 + 1;</BUG>
if (Options.getErrorReporting() && tokenMaskSize > 0) {

genCodeLine("  /** Whether we are looking ahead. */");
genCodeLine("  bool          jj_lookingAhead;");
genCodeLine("  bool          jj_semLA;");
genCodeLine("  int           jj_gen;");
genCodeLine("  int           jj_la1[" + (maskindex + 1) + "];");
genCodeLine("  ErrorHandler *errorHandler = nullptr;");
genCodeLine("");
genCodeLine("protected: ");
genCodeLine("  bool          hasError;");
genCodeLine("");
int tokenMaskSize = (tokenCount-1)/32 + 1;
if (Options.getErrorReporting() && tokenMaskSize > 0) {
