Ejemplo n.º 1
0
 public void getToken(ref Token token)
 {
     token.Type    = status;
     token.Content = this.content;
     if (status == WordType.Identifier)
     {
         int retVal = Classify.getValue(WordType.Identifier, content);
         if (retVal != -1)
         {
             token.Type  = WordType.Keyword;
             token.Value = retVal;
         }
     }
     init();
 }