浏览该文件的文档.
3 #ifndef JAVACC_ERRORHANDLER_H
4 #define JAVACC_ERRORHANDLER_H
44 fprintf(stderr,
"Error: %s\n", (
char*)message.c_str());
50 class VhdlParserTokenManager;
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());
virtual void handleUnexpectedToken(int expectedKind, const JJString &expectedToken, Token *actual, VhdlParser *parser)
int beginLine
The line number of the first character of this Token.
Describes the input token stream.
JAVACC_SIMPLE_STRING JJSimpleString
JJString image
The string image of the token.
int beginColumn
The column number of the first character of this Token.
virtual void handleParseError(Token *last, Token *unexpected, const JJSimpleString &production, VhdlParser *parser)
Token literal values and constants.
virtual int getErrorCount()
JJSimpleString addUnicodeEscapes(const JJString &str)
JAVACC_STRING_TYPE JJString
virtual void lexicalError(const JJString &errorMessage, VhdlParserTokenManager *token_manager)
virtual void handleOtherError(const JJString &message, VhdlParser *parser)
virtual void lexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, const JJString &errorAfter, JJChar curChar, VhdlParserTokenManager *token_manager)
virtual ~TokenManagerErrorHandler()