浏览该文件的文档. 1 #ifndef VHDLPARSERERRORHANDLER_H
2 #define VHDLPARSERERRORHANDLER_H
14 namespace 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());
virtual void lexicalError(const JJString &errorMessage, VhdlParserTokenManager *token_manager)
int beginLine
The line number of the first character of this Token.
Describes the input token stream.
JAVACC_SIMPLE_STRING JJSimpleString
VhdlTokenManagerErrorHandler(const char *fileName)
virtual void handleOtherError(const JJString &message, VhdlParser *parser)
virtual void handleUnexpectedToken(int expectedKind, const JJString &expectedToken, Token *actual, VhdlParser *parser)
void warn(const QCString &file, int line, const char *fmt,...)
VhdlErrorHandler(const char *fileName)
virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *token_manager)
JJString image
The string image of the token.
Token literal values and constants.
const char * getVhdlFileName(void)
JAVACC_STRING_TYPE JJString
virtual void handleParseError(Token *last, Token *unexpected, const JJSimpleString &production, VhdlParser *parser)
This is an alternative implementation of QCString.