protected override Token ExtractToken()
 {
     Token token;
     char currentChar = CurrentChar();
     // Construct the next token. The current character determines the // token type.
     if (currentChar == Source.EOF) {
         token = new EofToken(source); }
     else {
         token = new Token(source);
     }
     return token;
 }
Exemple #2
0
 public Token NextToken()
 {
     currentToken = ExtractToken ();
     return currentToken;
 }