3#ifndef JAVACC_ERRORHANDLER_H
4#define JAVACC_ERRORHANDLER_H
44 fprintf(stderr,
"Error: %s\n", (
char*)message.c_str());
68 fprintf(stderr,
"Lexical error at: %d:%d. Encountered: %c after: %s.\n", errorLine, errorColumn, curChar, (EOFSeen?
"EOF" : (
const char*)errorAfter.c_str()));
71 fprintf(stderr,
"%s\n", (
char*)errorMessage.c_str());
JAVACC_STRING_TYPE JJString
JAVACC_SIMPLE_STRING JJSimpleString
virtual void handleUnexpectedToken(int expectedKind, const JJString &expectedToken, Token *actual, VhdlParser *parser)
virtual int getErrorCount()
virtual void handleParseError(Token *last, Token *unexpected, const JJSimpleString &production, VhdlParser *parser)
virtual void handleOtherError(const JJString &message, VhdlParser *parser)
friend class VhdlParserTokenManager
JJString image
The string image of the token.
int beginColumn
The column number of the first character of this Token.
int beginLine
The line number of the first character of this Token.
virtual ~TokenManagerErrorHandler()
virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *token_manager)
virtual void lexicalError(const JJString &errorMessage, VhdlParserTokenManager *token_manager)
friend class VhdlParserTokenManager
JJSimpleString addUnicodeEscapes(const JJString &str)
Token literal values and constants.