diff options
Diffstat (limited to 'vhdlparser/TokenManager.h')
-rw-r--r-- | vhdlparser/TokenManager.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vhdlparser/TokenManager.h b/vhdlparser/TokenManager.h index 68fbe2f..0c2caa6 100644 --- a/vhdlparser/TokenManager.h +++ b/vhdlparser/TokenManager.h @@ -2,9 +2,12 @@ /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ #ifndef TOKENMANAGER_H #define TOKENMANAGER_H +#include <iostream> #include "JavaCC.h" #include "Token.h" +using namespace std; + namespace vhdl { namespace parser { /** @@ -16,12 +19,12 @@ namespace parser { class TokenManager { public: /** This gets the next token from the input stream. - * A token of kind 0 (\<EOF\>) should be returned on EOF. + * A token of kind 0 (<EOF>) should be returned on EOF. */ virtual ~TokenManager() { } virtual Token *getNextToken() = 0; virtual void lexicalError() { - fprintf(stderr,"Lexical error encountered."); + cerr << "Lexical error encountered." << endl; } }; |