Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPExpressionScanner.GetToken

Get the next token from the source expression

Declaration

Source position: fpexprpars.pp line 85

public function TFPExpressionScanner.GetToken: TTokenType;

Function result

Returns the type of token that was found

Description

The GetToken method advances the scanner to the next token in the source expression and returns the token type. The token text is made available through the Token property.

The method handles all aspects of tokenization including whitespace skipping, literal parsing, operator recognition, and error detection for invalid character sequences.


Documentation generated on: Dec 15 2025