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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lexer.h') 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