summaryrefslogtreecommitdiffstats
path: root/vhdlparser/VhdlParserTokenManager.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-01-03 13:11:32 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-01-03 13:49:24 (GMT)
commit088896f27f460b6ac03c2d64df148e3617c1e519 (patch)
tree5b0c250c54a6ede082f765d507d749fad52b0756 /vhdlparser/VhdlParserTokenManager.h
parentd75455eef7c91f11c2b9061d9a086ce93c4231b2 (diff)
downloadDoxygen-088896f27f460b6ac03c2d64df148e3617c1e519.zip
Doxygen-088896f27f460b6ac03c2d64df148e3617c1e519.tar.gz
Doxygen-088896f27f460b6ac03c2d64df148e3617c1e519.tar.bz2
Switched back to version 6.2 of JavaCC for VHDL parser generation.
Diffstat (limited to 'vhdlparser/VhdlParserTokenManager.h')
-rw-r--r--vhdlparser/VhdlParserTokenManager.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/vhdlparser/VhdlParserTokenManager.h b/vhdlparser/VhdlParserTokenManager.h
index 304cff3..f24c8e3 100644
--- a/vhdlparser/VhdlParserTokenManager.h
+++ b/vhdlparser/VhdlParserTokenManager.h
@@ -1,8 +1,10 @@
#ifndef VHDLPARSERTOKENMANAGER_H
#define VHDLPARSERTOKENMANAGER_H
+#include "stdio.h"
#include "JavaCC.h"
#include "CharStream.h"
#include "Token.h"
+#include "ErrorHandler.h"
#include "TokenManager.h"
#include "VhdlParserConstants.h"
#include "VhdlParser.h"
@@ -115,16 +117,27 @@ void TokenLexicalActions(Token *matchedToken);
public: virtual ~VhdlParserTokenManager();
void ReInit(JAVACC_CHARSTREAM *stream, int lexState = 0, VhdlParser *parserArg = NULL);
void SwitchTo(int lexState);
+ void clear();
const JAVACC_SIMPLE_STRING jjKindsForBitVector(int i, unsigned long long vec);
const JAVACC_SIMPLE_STRING jjKindsForStateVector(int lexState, int vec[], int start, int end);
- JAVACC_CHARSTREAM *input_stream;
- int jjrounds[75];
- int jjstateSet[2 * 75];
- JAVACC_STRING_TYPE jjimage;
- JAVACC_STRING_TYPE image;
- int jjimageLen;
- int lengthOfMatch;
- JAVACC_CHAR_TYPE curChar;
+ JAVACC_CHARSTREAM* input_stream;
+ int jjrounds[75];
+ int jjstateSet[2 * 75];
+ JAVACC_STRING_TYPE jjimage;
+ JAVACC_STRING_TYPE image;
+ int jjimageLen;
+ int lengthOfMatch;
+ JAVACC_CHAR_TYPE curChar;
+ TokenManagerErrorHandler* errorHandler;
+ bool errorHandlerCreated;
+
+public:
+ void setErrorHandler(TokenManagerErrorHandler *eh) {
+ if (errorHandlerCreated && errorHandler != NULL) delete errorHandler;
+ errorHandler = eh;
+ errorHandlerCreated = false;
+ }
+
};
}
}