|| tokenName.equals("AP") || tokenName.equals("CP") || tokenName.equals("LT")
|| tokenName.equals("PP") || tokenName.equals("RG")) {
token = new TextToken();
}
else { // If all else fails, fail.
throw new SGFException("unexpected token name:"+ tokenName);
}
// Now that we know what type of token we have, ask it to parse itself.
// Most of the parsing is done by the TextToken class. All tokens are
// subclasses of SGFToken.