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