Call CheckToken to check if the current token in the file is a specific type. If the token is not the specified type, then the EParserError exception is raised, otherwise, processing continues. You can respond to this error by specifying the OnError event.

You pass the token type in the T value, passing one of the following values :