diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lexer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h new file mode 100644 index 0000000..4e6d73d --- /dev/null +++ b/src/lexer.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | #ifndef LEXER_H | ||
| 2 | #define LEXER_H | ||
| 3 | |||
| 4 | #include <bu/stream.h> | ||
| 5 | |||
| 6 | class Token; | ||
| 7 | |||
| 8 | class Lexer | ||
| 9 | { | ||
| 10 | public: | ||
| 11 | Lexer( Bu::Stream &rIn ); | ||
| 12 | virtual ~Lexer(); | ||
| 13 | |||
| 14 | Token nextToken(); | ||
| 15 | |||
| 16 | int getScale() const { return iScale; } | ||
| 17 | void setScale( int i ) { iScale = i; } | ||
| 18 | |||
| 19 | int getRadix() const { return iRadix; } | ||
| 20 | void setRadix( int i ); | ||
| 21 | |||
| 22 | private: | ||
| 23 | Bu::Stream &rIn; | ||
| 24 | Bu::String sBuf; | ||
| 25 | int iBufPos; | ||
| 26 | int iScale; | ||
| 27 | int iRadix; | ||
| 28 | char numRangeTop; | ||
| 29 | char ascRangeTop; | ||
| 30 | }; | ||
| 31 | |||
| 32 | #endif | ||
