[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TParser.CheckTokenSymbol

Checks whether the token equals the given symbol

Declaration

Source position: classesh.inc line 1435

public procedure TParser.CheckTokenSymbol(

  const S: String

);

Description

CheckTokenSymbol performs a case-insensitive comparison of current token value with S.

Current token must be of type toSymbol, otherwise an EParserError exception is raised.

Errors

If the comparison fails, or current token isn't a symbol, an EParserError exception is raised.

See also

TParser.TokenSymbolIs

  

Returns True if the token equals the given symbol.

toSymbol

  

Value returned by TParser.Token when a symbol was found in the input stream.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.