1#ifndef VHDLPARSERERRORHANDLER_H
2#define VHDLPARSERERRORHANDLER_H
14namespace vhdl {
namespace parser {
25 throw std::exception();
32 throw std::exception();
37 warn(
m_fileName, -1,
"unexpected error: '%s'", (
char*)message.c_str());
39 throw std::exception();
53 warn(
m_fileName,errorLine,
"Lexical error, Encountered: '%c' after: '%s'",curChar, (EOFSeen?
"EOF" : (
const char*)errorAfter.c_str()));
58 warn(
m_fileName,-1,
"Unknown error: '%s'", (
char*)errorMessage.c_str());
JAVACC_STRING_TYPE JJString
JAVACC_SIMPLE_STRING JJSimpleString
const char * getVhdlFileName(void)
This is an alternative implementation of QCString.
Describes the input token stream.
JJString image
The string image of the token.
int beginLine
The line number of the first character of this Token.
friend class VhdlParserTokenManager
virtual void handleParseError(Token *last, Token *unexpected, const JJSimpleString &, VhdlParser *)
virtual void handleOtherError(const JJString &message, VhdlParser *)
virtual void handleUnexpectedToken(int, const JJString &, Token *actual, VhdlParser *)
VhdlErrorHandler(const char *fileName)
VhdlTokenManagerErrorHandler(const char *fileName)
virtual void lexicalError(const JJString &errorMessage, VhdlParserTokenManager *)
virtual void lexicalError(bool EOFSeen, int, int errorLine, int, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *)
#define warn(file, line, fmt,...)
Token literal values and constants.