Sign in Join
FPDoc Onlineexperiment

TokenName function

In unit fpExprPars

Get name for token type

Declaration

pascal
function TokenName(AToken: TTokenType): AnsiString

Arguments

AToken

Token type to get name for

Function result

Returns string name for the token

Description

The TokenName function converts a TTokenType enumeration value to its corresponding string name. It provides a human-readable representation of token types for debugging, error reporting, and logging purposes.

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