Sign in Join
FPDoc Onlineexperiment

TParser.TokenComponentIdent function

Member of TParserpublicIn unit Classes

Returns the path of a subcomponent starting from the current token.

Declaration

pascal
function TokenComponentIdent: string

Description

If current token is toSymbol, TokenComponentIdent tries to find subcomponent names separated by a dot (.). The returned string is the longest subcomponent path found. If there are no subcomponents, current symbol is returned.

After this method has been called, subsequent calls to TokenString or TokenWideString return the same value returned by TokenComponentIdent.

Example

If source stream contains a.b.c and TParser is positioned on the first token (a), this method returns a.b.c.

Errors

If Token isn't toSymbol, or no valid symbol is found after a dot, an EParserError exception is raised.

See also

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