switch (symbolList.get(i).getType()) {
case ANY:
tokens[i] = new AnyToken();
break;
case WORD:
tokens[i] = new WordToken(true);
break;
case NONWORD:
tokens[i] = new WordToken(false);
break;
case DIGIT:
tokens[i] = new DigitToken(true);
break;
case NONDIGIT: