TokenManager.h
Go to the documentation of this file.
1 /* Generated By:JavaCC: Do not edit this line. TokenManager.h Version 6.2 */
2 /* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3 #ifndef TOKENMANAGER_H
4 #define TOKENMANAGER_H
5 #include <iostream>
6 #include "JavaCC.h"
7 #include "Token.h"
8 
9 using namespace std;
10 
11 namespace vhdl {
12 namespace parser {
13 /**
14  * An implementation for this interface is generated by
15  * JavaCCParser. The user is free to use any implementation
16  * of their choice.
17  */
18 
19 class TokenManager {
20 public:
21  /** This gets the next token from the input stream.
22  * A token of kind 0 (<EOF>) should be returned on EOF.
23  */
24  virtual ~TokenManager() { }
25  virtual Token *getNextToken() = 0;
26  virtual void lexicalError() {
27  cerr << "Lexical error encountered." << endl;
28  }
29 
30 };
31 
32 }
33 }
34 #endif
35 /* JavaCC - OriginalChecksum=918e2eba53e028d6c4142283ce3f498f (do not edit this line) */
STL namespace.
virtual void lexicalError()
Definition: TokenManager.h:26
QTextStream & endl(QTextStream &s)