public void NextToken() { if (_PeekToken == null) { _currentToken = Scan(); } else { _currentToken = _PeekToken; _PeekToken = null; } }
public void StartUp() { _reader = new StreamReader(_file); _currentToken = null; _PeekToken = null; _lineNumber = 0; }
public Token Peek() { return _PeekToken ?? (_PeekToken = Scan()); }