summaryrefslogtreecommitdiff
path: root/src/lexer.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2016-11-30 13:57:04 -0700
committerMike Buland <eichlan@xagasoft.com>2016-11-30 13:57:04 -0700
commit0321e6e39b8cf24718cf853c28f0f35443753264 (patch)
tree878bdaa2296014244f2dbe90d61c5c869e8204b7 /src/lexer.h
parentf50e787110c8b3ecbc1b07262842dd5fdc8a5e42 (diff)
downloadclic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.gz
clic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.bz2
clic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.xz
clic-0321e6e39b8cf24718cf853c28f0f35443753264.zip
Working on the parser, some issues.
Diffstat (limited to 'src/lexer.h')
-rw-r--r--src/lexer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lexer.h b/src/lexer.h
index d5631d4..193a22b 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -20,7 +20,7 @@ public:
20 void setMode( Mode e ) { eMode = e; } 20 void setMode( Mode e ) { eMode = e; }
21 Mode getMode() const { return eMode; } 21 Mode getMode() const { return eMode; }
22 22
23 Token nextToken(); 23 void nextToken();
24 24
25 int getScale() const { return iScale; } 25 int getScale() const { return iScale; }
26 void setScale( int i ) { iScale = i; } 26 void setScale( int i ) { iScale = i; }
@@ -31,6 +31,7 @@ public:
31 Token &operator[]( int iIdx ); 31 Token &operator[]( int iIdx );
32 32
33private: 33private:
34 void fillToken();
34 Token nextTokenNormal(); 35 Token nextTokenNormal();
35 Token nextTokenCommand(); 36 Token nextTokenCommand();
36 37
@@ -43,6 +44,11 @@ private:
43 char numRangeTop; 44 char numRangeTop;
44 char ascRangeTop; 45 char ascRangeTop;
45 Mode eMode; 46 Mode eMode;
47
48 int iLookAheadSize;
49 int iLookAheadUsed;
50 int iLookAheadStart;
51 Token *aLookAhead;
46}; 52};
47 53
48#endif 54#endif