Sign in Join
FPDoc Onlineexperiment

TParser.CheckTokenSymbol procedure

Member of TParserpublicIn unit Classes

Checks whether the token equals the given symbol.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.