Sign in Join
FPDoc Onlineexperiment

TFPExpressionParser.ExtractNode function

Member of TFPExpressionParserpublicIn unit fpExprPars

Extract expression node from result

Declaration

pascal
function ExtractNode(var N: TFPExprNode): Boolean

Arguments

N

The result to extract node from

Function result

Returns the extracted node

Description

The ExtractNode method extracts and returns the expression tree node from an expression result structure. It provides access to the internal node representation for advanced manipulation or analysis of the parsed expression.

This allows you to evaluate the same expression multiple times without needing to re-parse the expresion: by changing e.g. the value of a variable and calling the NodeValue method on the extracted node, you can get the updated result.

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