src/Lexer.h

changeset 105
6dbac3305614
parent 103
48472c0678cc
child 108
6409ece8297c
equal deleted inserted replaced
104:62da929f7814 105:6dbac3305614
58 int GetOneSymbol (const StringList& syms); 58 int GetOneSymbol (const StringList& syms);
59 void TokenMustBe (EToken tok); 59 void TokenMustBe (EToken tok);
60 bool PeekNext (Token* tk = null); 60 bool PeekNext (Token* tk = null);
61 bool PeekNextType (EToken req); 61 bool PeekNextType (EToken req);
62 String PeekNextString (int a = 1); 62 String PeekNextString (int a = 1);
63 String DescribePosition(); 63 String DescribeCurrentPosition();
64 String DescribeTokenPosition();
64 65
65 static Lexer* GetCurrentLexer(); 66 static Lexer* GetCurrentLexer();
66 67
67 inline bool HasValidToken() const 68 inline bool HasValidToken() const
68 { 69 {

mercurial