RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParser.CheckTokenSymbol Method

Checks if the current token in the file is a symbol with a specific value.

Pascal
procedure CheckTokenSymbol(const S: string);
C++
__fastcall CheckTokenSymbol(const AnsiString S);

Call CheckTokenSymbol to check if the current token in the file is symbol named S. If the token is not a symbol, or not a symbol with the specified value, then the EParseError exception is raised, otherwise, processing continues. You can respond to this error by specifying the OnError event.

Note: Use TokenSymbolIs if you want to perform this check without raising an exception
 

CheckToken 

EParseError 

OnError 

TokenSymbolIs 

toSymbol

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!