src/Lexer.cc

changeset 99
44c0c7f31ae8
parent 89
029a330a9bef
child 103
48472c0678cc
equal deleted inserted replaced
98:ea02b78a737a 99:44c0c7f31ae8
284 return r; 284 return r;
285 } 285 }
286 286
287 // ============================================================================= 287 // =============================================================================
288 // 288 //
289 bool Lexer::PeekNextType (EToken req)
290 {
291 Iterator pos = mTokenPosition;
292 bool result = false;
293
294 if (GetNext() && GetTokenType() == req)
295 result = true;
296
297 mTokenPosition = pos;
298 return result;
299 }
300
301 // =============================================================================
302 //
289 Lexer* Lexer::GetCurrentLexer() 303 Lexer* Lexer::GetCurrentLexer()
290 { 304 {
291 return gMainLexer; 305 return gMainLexer;
292 } 306 }
293 307

mercurial