System.Classes.TParser.CheckTokenSymbol
Delphi
procedure CheckTokenSymbol(const S: string);
C++
void __fastcall CheckTokenSymbol(const System::UnicodeString S);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TParser |
Description
Checks if the current token in the file is a symbol with a specific value.
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 EParserError 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.