core/src/lexer.h
changeset 78 b3ffff030d5c
parent 0 7f656887cf89
--- a/core/src/lexer.h	Tue Oct 26 15:36:30 2010 +0100
+++ b/core/src/lexer.h	Thu Oct 28 16:54:54 2010 +0100
@@ -14,7 +14,9 @@
 #define __LEXER_H__
 
 #include <e32base.h>
+#include <fshell/iocli.h>
 
+class CLex;
 class CReservedLookup;
 
 
@@ -72,20 +74,24 @@
 	~CLexer();
 	void DefineTokenTypeL(TToken::TType aTokenType, const TDesC& aString);
 	void Set(const TDesC& aDes, const TChar& aEscapeChar);
-	TToken NextToken();
+	void Set(RIoReadHandle& aHandle, const TChar& aEscapeChar);
+	void Purge();
+	void SkipToEnd();
+	TToken NextTokenL();
 	TInt CurrentOffset() const;
-	TBool More();
+	TBool MoreL();
+	const TUint16* Ptr() const;
 private:
 	CLexer(TUint aBehaviour);
 	void ConstructL();
-	void SkipSingleQuotedChars();
-	void SkipDoubleQuotedChars();
-	void SkipComment();
-	void SkipWhiteSpace();
+	void SkipSingleQuotedCharsL();
+	void SkipDoubleQuotedCharsL();
+	void SkipCommentL();
+	void SkipWhiteSpaceL();
 private:
 	TUint iBehaviour;
 	TChar iEscapeChar;
-	TLex iLex;
+	CLex* iLex;
 	CReservedLookup* iReservedLookup;
 	};