src/Lexer.h

changeset 103
48472c0678cc
parent 99
44c0c7f31ae8
child 105
6dbac3305614
equal deleted inserted replaced
102:28f89ca1a236 103:48472c0678cc
51 Lexer(); 51 Lexer();
52 ~Lexer(); 52 ~Lexer();
53 53
54 void ProcessFile (String file_name); 54 void ProcessFile (String file_name);
55 bool GetNext (EToken req = tkAny); 55 bool GetNext (EToken req = tkAny);
56 void MustGetNext (EToken tok = tkAny); 56 void MustGetNext (EToken tok);
57 void MustGetAnyOf (const List<EToken>& toks); 57 void MustGetAnyOf (const List<EToken>& toks);
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);

mercurial