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