[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Returns the path of a subcomponent starting from the current token.
Source position: classesh.inc line 1442
public function TParser.TokenComponentIdent: String; |
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.
Remark: | 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.
If Token isn't toSymbol, or no valid symbol is found after a dot, an EParserError exception is raised.
|
Reads the next token and returns its type. |
|
|
The type of the current token. |
|
|
Returns the current token as a string. |
|
|
Returns the current token as a widestring |
|
|
Value returned by TParser.Token when a symbol was found in the input stream. |
lazarus-ccr.sourceforge.net |