From 2909f50d008920568f0e50da760b266388ccc124 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 22 Apr 2013 13:05:22 -0600 Subject: There is now a parser & calculator interface. --- src/lexer.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/lexer.h (limited to 'src/lexer.h') 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 @@ +#ifndef LEXER_H +#define LEXER_H + +#include + +class Token; + +class Lexer +{ +public: + Lexer( Bu::Stream &rIn ); + virtual ~Lexer(); + + Token nextToken(); + + int getScale() const { return iScale; } + void setScale( int i ) { iScale = i; } + + int getRadix() const { return iRadix; } + void setRadix( int i ); + +private: + Bu::Stream &rIn; + Bu::String sBuf; + int iBufPos; + int iScale; + int iRadix; + char numRangeTop; + char ascRangeTop; +}; + +#endif -- cgit v1.2.3