Blame vhdlparser/TokenMgrError.h

Packit 1c1d7e
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.h Version 6.0 */
Packit 1c1d7e
/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
Packit 1c1d7e
#ifndef _TOKENMGRERROR_H
Packit 1c1d7e
#define _TOKENMGRERROR_H
Packit 1c1d7e
#include "JavaCC.h"
Packit 1c1d7e
Packit 1c1d7e
Packit 1c1d7e
namespace vhdl {
Packit 1c1d7e
namespace parser {
Packit 1c1d7e
Packit 1c1d7e
 enum LexerErrors {
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Lexical error occurred.
Packit 1c1d7e
   */
Packit 1c1d7e
  LEXICAL_ERROR = 0,
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * An attempt was made to create a second instance of a  token manager.
Packit 1c1d7e
   */
Packit 1c1d7e
  STATIC_LEXER_ERROR = 1,
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Tried to change to an invalid lexical state.
Packit 1c1d7e
   */
Packit 1c1d7e
  INVALID_LEXICAL_STATE = 2,
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Detected (and bailed out of) an infinite loop in the token manager.
Packit 1c1d7e
   */
Packit 1c1d7e
  LOOP_DETECTED = 3,
Packit 1c1d7e
  };
Packit 1c1d7e
Packit 1c1d7e
class TokenMgrError
Packit 1c1d7e
{
Packit 1c1d7e
  public:
Packit 1c1d7e
  /*
Packit 1c1d7e
   * Ordinals for various reasons why an Error of this type can be thrown.
Packit 1c1d7e
   */
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Indicates the reason why the exception is thrown. It will have
Packit 1c1d7e
   * one of the above 4 values.
Packit 1c1d7e
   */
Packit 1c1d7e
  int errorCode;
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Returns a detailed message for the Error when it is thrown by the
Packit 1c1d7e
   * token manager to indicate a lexical error.
Packit 1c1d7e
   * Parameters :
Packit 1c1d7e
   *    EOFSeen     : indicates if EOF caused the lexical error
Packit 1c1d7e
   *    curLexState : lexical state in which this error occurred
Packit 1c1d7e
   *    errorLine   : line number when the error occurred
Packit 1c1d7e
   *    errorColumn : column number when the error occurred
Packit 1c1d7e
   *    errorAfter  : prefix that was seen before this error occurred
Packit 1c1d7e
   *    curchar     : the offending character
Packit 1c1d7e
   * Note: You can customize the lexical error message by modifying this method.
Packit 1c1d7e
   */
Packit 1c1d7e
    JAVACC_STRING_TYPE LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, JAVACC_STRING_TYPE errorAfter, JAVACC_CHAR_TYPE curChar);
Packit 1c1d7e
Packit 1c1d7e
  private: JAVACC_STRING_TYPE message;
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * You can also modify the body of this method to customize your error messages.
Packit 1c1d7e
   * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
Packit 1c1d7e
   * of end-users concern, so you can return something like :
Packit 1c1d7e
   *
Packit 1c1d7e
   *     "Internal Error : Please file a bug report .... "
Packit 1c1d7e
   *
Packit 1c1d7e
   * from this method for such cases in the release version of your parser.
Packit 1c1d7e
   */
Packit 1c1d7e
  JAVACC_STRING_TYPE getMessage() ;
Packit 1c1d7e
Packit 1c1d7e
  /*
Packit 1c1d7e
   * Constructors of various flavors follow.
Packit 1c1d7e
   */
Packit 1c1d7e
Packit 1c1d7e
  /** No arg constructor. */
Packit 1c1d7e
  public: TokenMgrError() ;
Packit 1c1d7e
Packit 1c1d7e
  /** Constructor with message and reason. */
Packit 1c1d7e
  public: TokenMgrError(JAVACC_STRING_TYPE message, int reason) ;
Packit 1c1d7e
Packit 1c1d7e
  /** Full Constructor. */
Packit 1c1d7e
  public: TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, JAVACC_STRING_TYPE errorAfter, JAVACC_CHAR_TYPE curChar, int reason) ;
Packit 1c1d7e
};
Packit 1c1d7e
Packit 1c1d7e
}
Packit 1c1d7e
}
Packit 1c1d7e
#endif
Packit 1c1d7e
/* JavaCC - OriginalChecksum=c7d825cb4d037b031ae43569d383f738 (do not edit this line) */