Blame vhdlparser/ParseException.h

Packit 1c1d7e
/* Generated By:JavaCC: Do not edit this line. ParseException.h Version 6.0 */
Packit 1c1d7e
/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
Packit 1c1d7e
#ifndef _PARSE_EXCEPTION_H
Packit 1c1d7e
#define _PARSE_EXCEPTION_H
Packit 1c1d7e
#include "JavaCC.h"
Packit 1c1d7e
#include "Token.h"
Packit 1c1d7e
Packit 1c1d7e
Packit 1c1d7e
namespace vhdl {
Packit 1c1d7e
namespace parser {
Packit 1c1d7e
/**
Packit 1c1d7e
 * This exception is thrown when parse errors are encountered.
Packit 1c1d7e
 * You can explicitly create objects of this exception type by
Packit 1c1d7e
 * calling the method generateParseException in the generated
Packit 1c1d7e
 * parser.
Packit 1c1d7e
 *
Packit 1c1d7e
 * You can modify this class to customize your error reporting
Packit 1c1d7e
 * mechanisms so long as you retain the fields.
Packit 1c1d7e
 */
Packit 1c1d7e
class ParseException {
Packit 1c1d7e
  public:
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * This constructor is used by the method "generateParseException"
Packit 1c1d7e
   * in the generated parser.  Calling this constructor generates
Packit 1c1d7e
   * a new object of this type with the fields "currentToken",
Packit 1c1d7e
   * "expectedTokenSequences", and "tokenImage" set.
Packit 1c1d7e
   */
Packit 1c1d7e
  ParseException(Token currentTokenVal,
Packit 1c1d7e
                        int** expectedTokenSequencesVal,
Packit 1c1d7e
                        JAVACC_STRING_TYPE* tokenImageVal
Packit 1c1d7e
                       );
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * The following constructors are for use by you for whatever
Packit 1c1d7e
   * purpose you can think of.  Constructing the exception in this
Packit 1c1d7e
   * manner makes the exception behave in the normal way - i.e., as
Packit 1c1d7e
   * documented in the class "Throwable".  The fields "errorToken",
Packit 1c1d7e
   * "expectedTokenSequences", and "tokenImage" do not contain
Packit 1c1d7e
   * relevant information.  The JavaCC generated code does not use
Packit 1c1d7e
   * these constructors.
Packit 1c1d7e
   */
Packit 1c1d7e
Packit 1c1d7e
  ParseException();
Packit 1c1d7e
Packit 1c1d7e
  /** Constructor with message. */
Packit 1c1d7e
  ParseException(JAVACC_STRING_TYPE message);
Packit 1c1d7e
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * This is the last token that has been consumed successfully.  If
Packit 1c1d7e
   * this object has been created due to a parse error, the token
Packit 1c1d7e
   * followng this token will (therefore) be the first error token.
Packit 1c1d7e
   */
Packit 1c1d7e
  Token currentToken;
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Each entry in this array is an array of integers.  Each array
Packit 1c1d7e
   * of integers represents a sequence of tokens (by their ordinal
Packit 1c1d7e
   * values) that is expected at this point of the parse.
Packit 1c1d7e
   */
Packit 1c1d7e
  int** expectedTokenSequences;
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * This is a reference to the "tokenImage" array of the generated
Packit 1c1d7e
   * parser within which the parse error occurred.  This array is
Packit 1c1d7e
   * defined in the generated ...Constants class.
Packit 1c1d7e
   */
Packit 1c1d7e
  JAVACC_STRING_TYPE* tokenImage;
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * It uses "currentToken" and "expectedTokenSequences" to generate a parse
Packit 1c1d7e
   * error message and returns it.  If this object has been created
Packit 1c1d7e
   * due to a parse error, and you do not catch it (it gets thrown
Packit 1c1d7e
   * from the parser) the correct error message
Packit 1c1d7e
   * gets displayed.
Packit 1c1d7e
   */
Packit 1c1d7e
  private:  JAVACC_STRING_TYPE initialise(Token currentToken,
Packit 1c1d7e
                           int** expectedTokenSequences,
Packit 1c1d7e
                           JAVACC_STRING_TYPE* tokenImage);
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * The end of line string for this machine.
Packit 1c1d7e
   */
Packit 1c1d7e
#define eol "\n"
Packit 1c1d7e
Packit 1c1d7e
  /**
Packit 1c1d7e
   * Used to convert raw characters to their escaped version
Packit 1c1d7e
   * when these raw version cannot be used as part of an ASCII
Packit 1c1d7e
   * string literal.
Packit 1c1d7e
   */
Packit 1c1d7e
   JAVACC_STRING_TYPE add_escapes(JAVACC_STRING_TYPE str);
Packit 1c1d7e
Packit 1c1d7e
};
Packit 1c1d7e
Packit 1c1d7e
}
Packit 1c1d7e
}
Packit 1c1d7e
#endif
Packit 1c1d7e
/* JavaCC - OriginalChecksum=8c47c56fc2030f05b43e20cae6ca5d66 (do not edit this line) */