summaryrefslogtreecommitdiffstats
path: root/vhdlparser/VhdlParserIF.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vhdlparser/VhdlParserIF.cpp')
-rw-r--r--vhdlparser/VhdlParserIF.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/vhdlparser/VhdlParserIF.cpp b/vhdlparser/VhdlParserIF.cpp
index f9f689b..3a6746f 100644
--- a/vhdlparser/VhdlParserIF.cpp
+++ b/vhdlparser/VhdlParserIF.cpp
@@ -14,6 +14,8 @@ void VhdlParserIF::parseVhdlfile(const char* inputBuffer,bool inLine)
JAVACC_STRING_TYPE s =inputBuffer;
CharStream *stream = new CharStream(s.c_str(), (int)s.size(), 1, 1);
VhdlParserTokenManager *tokenManager = new VhdlParserTokenManager(stream);
+ VhdlTokenManagerErrorHandler *myTokErr=new VhdlTokenManagerErrorHandler();
+ tokenManager->setErrorHandler(myTokErr);
myParser=new VhdlParser(tokenManager);
VhdlErrorHandler *myErr=new VhdlErrorHandler();
myParser->setErrorHandler(myErr);