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

TFPExprNode.AsString

Get string representation of the expression node

Declaration

Source position: fpexprpars.pp line 127

public function TFPExprNode.AsString: AnsiString; virtual; abstract;

Function result

Returns string representation of the node

Description

The AsString abstract method must be implemented by derived classes to return a string representation of the expression node and its structure. The string typically shows the operation or value in a human-readable format.

For operations, the string usually includes the operands and operator (e.g., "A + B"). For literals, it shows the value. For function calls, it shows the function name and parameters.

The AsString method is primarily used for debugging, logging, and displaying expression structures to users.


Documentation generated on: Dec 15 2025