Doxygen
Loading...
Searching...
No Matches
TokenManager.h
Go to the documentation of this file.
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
10namespace vhdl {
11namespace 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
19public:
20 virtual ~TokenManager() { }
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 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=ca665ddedf5f5b0cb69e76d90eb70fe0 (do not edit this line) */
An implementation for this interface is generated by JavaCCParser.
virtual void lexicalError()
virtual Token * getNextToken()=0
This gets the next token from the input stream.
virtual void setParser(void *parser)
Token literal values and constants.
Definition CharStream.h:12