TParser.Token property
The type of the current token.
Declaration
property Token: AnsiChar read fToken;Description
This property holds the type of the current token. When Token isn't one of the special token types (whose value can be retrieved with specific methods) it is the character representing the current token.
Special token types:
| toEOF |
Value returned by Token when the end of the input stream was reached. |
| toSymbol |
Value returned by Token when a symbol was found in the input stream. |
| toString |
Value returned by Token when a string was found in the input stream. |
| toInteger |
Value returned by Token when an integer was found in the input stream. |
| toFloat |
Value returned by Token when a floating point value was found in the input stream. |
| toWString |
Value returned by Token when a widestring was found in the input stream. |
To advance to the next token, use NextToken method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
