| 1 |
/* Generated By:JavaCC: Do not edit this line. TokenManager.h Version 6.0 */ |
| 2 |
/* JavaCCOptions:STATIC=true,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ |
| 3 |
#ifndef TOKENMANAGER_H |
| 4 |
#define TOKENMANAGER_H |
| 5 |
#include "JavaCC.h" |
| 6 |
#include "Token.h" |
| 7 |
|
| 8 |
|
| 9 |
namespace Konclude { |
| 10 |
namespace Parser { |
| 11 |
namespace FunctionalJAVACC { |
| 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 |
public: virtual Token *getNextToken() = 0; |
| 24 |
public: virtual ~TokenManager() { } |
| 25 |
public: virtual void lexicalError() { |
| 26 |
fprintf(stderr, "Lexical error encountered"); |
| 27 |
} |
| 28 |
|
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
} |
| 33 |
} |
| 34 |
#endif |
| 35 |
/* JavaCC - OriginalChecksum=d9157ca0e283dcf3c0c6cbe0c7f08a29 (do not edit this line) */ |