RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.CheckToken Method

Checks if the current token in the file is a specific type.

Pascal
procedure CheckToken(T: Char);
C++
__fastcall CheckToken(Char T);

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 :

T value 
Meaning 
toEOF  
End of file has been reached  
The next token is a floating (decimal) pointing value  
The next token is an integer value  
The next token is a text value  
The next token is a symbol  
The next token is a wide string value  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!