Sign in Join
FPDoc Onlineexperiment

TFPExpressionParser.Evaluate function

Member of TFPExpressionParserpublicIn unit fpExprPars

Evaluate the current expression

Declaration

pascal
function Evaluate: TFPExpressionResult

Function result

Returns the evaluation result

Description

The Evaluate method evaluates the currently parsed expression and returns the result as an TFPExpressionResult. It executes the complete expression tree and computes the final value.

The evaluation process includes resolving variables, calling functions, and performing all arithmetic and logical operations according to the expression structure and operator precedence rules.

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