source: trunk/yao/share/antlr-2.7.7/examples/cpp/flexLexer/LexTokenStream.hpp @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 371 bytes
Line 
1#ifndef INC_LexTokenStream_hpp__
2#define INC_LexTokenStream_hpp__
3
4#include <cstdio>
5#include "antlr/TokenStream.hpp"
6
7class LexTokenStream : public ANTLR_USE_NAMESPACE(antlr)TokenStream {
8public:
9        LexTokenStream(std::FILE* fp);
10        void newLine();
11        ANTLR_USE_NAMESPACE(antlr)RefToken nextToken();
12private:
13        int line;
14        bool reachedEOF;
15};
16
17#endif //INC_LexTokenStream_hpp__
Note: See TracBrowser for help on using the repository browser.