From f50e787110c8b3ecbc1b07262842dd5fdc8a5e42 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 23 Nov 2016 07:35:26 -0700 Subject: Added new helpers for lookahead. --- src/lexer.cpp | 4 ++++ src/lexer.h | 2 ++ 2 files changed, 6 insertions(+) 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 ) } } +Token &Lexer::operator[]( int iIdx ) +{ +} + 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: int getRadix() const { return iRadix; } void setRadix( int i ); + Token &operator[]( int iIdx ); + private: Token nextTokenNormal(); Token nextTokenCommand(); -- cgit v1.2.3