summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2016-11-23 07:35:26 -0700
committerMike Buland <eichlan@xagasoft.com>2016-11-23 07:35:26 -0700
commitf50e787110c8b3ecbc1b07262842dd5fdc8a5e42 (patch)
treeaec70297de4b316a7f48866b2b3ea4442cf9b954 /src
parent2205ae40dbb48abb6012d68eddd1682fecb3441c (diff)
downloadclic-f50e787110c8b3ecbc1b07262842dd5fdc8a5e42.tar.gz
clic-f50e787110c8b3ecbc1b07262842dd5fdc8a5e42.tar.bz2
clic-f50e787110c8b3ecbc1b07262842dd5fdc8a5e42.tar.xz
clic-f50e787110c8b3ecbc1b07262842dd5fdc8a5e42.zip
Added new helpers for lookahead.
Diffstat (limited to 'src')
-rw-r--r--src/lexer.cpp4
-rw-r--r--src/lexer.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lexer.cpp b/src/lexer.cpp
index f959e3b..b0d0fd1 100644
--- a/src/lexer.cpp
+++ b/src/lexer.cpp
@@ -233,3 +233,7 @@ void Lexer::setRadix( int i )
233 } 233 }
234} 234}
235 235
236Token &Lexer::operator[]( int iIdx )
237{
238}
239
diff --git a/src/lexer.h b/src/lexer.h
index 57b2865..d5631d4 100644
--- a/src/lexer.h
+++ b/src/lexer.h
@@ -28,6 +28,8 @@ public:
28 int getRadix() const { return iRadix; } 28 int getRadix() const { return iRadix; }
29 void setRadix( int i ); 29 void setRadix( int i );
30 30
31 Token &operator[]( int iIdx );
32
31private: 33private:
32 Token nextTokenNormal(); 34 Token nextTokenNormal();
33 Token nextTokenCommand(); 35 Token nextTokenCommand();