Class TCustomExpressionParser

Unit

Declaration

type TCustomExpressionParser = class(TObject)

Description

This item has no description.

Hierarchy

Overview

Fields

Protected FWordsList: TSortedCollection;

Methods

Protected function MakeRec: PExpressionRec; virtual;
Protected procedure FillExpressList; virtual; abstract;
Protected procedure HandleUnknownVariable(VarName: string); virtual; abstract;
Protected procedure CompileExpression(AnExpression: string);
Protected procedure EvaluateCurrent;
Protected procedure DisposeList(ARec: PExpressionRec);
Protected procedure DisposeTree(ExprRec: PExpressionRec);
Protected function CurrentExpression: string; virtual; abstract;
Protected function GetResultType: TExpressionType; virtual;
Public constructor Create;
Public destructor Destroy; override;
Public function DefineFloatVariable(AVarName: string; AValue: PDouble): TExprWord;
Public function DefineIntegerVariable(AVarName: string; AValue: PInteger): TExprWord;
Public function DefineDateTimeVariable(AVarName: string; AValue: PDateTimeRec): TExprWord;
Public function DefineBooleanVariable(AVarName: string; AValue: PBoolean): TExprWord;
Public function DefineStringVariable(AVarName: string; AValue: PPChar): TExprWord;
Public function DefineFunction(AFunctName, AShortName, ADescription, ATypeSpec: string; AMinFunctionArg: Integer; AResultType: TExpressionType; AFuncAddress: TExprFunc): TExprWord;
Public procedure Evaluate(AnExpression: string);
Public function AddExpression(AnExpression: string): Integer;
Public procedure ClearExpressions; virtual;
Public procedure GetFunctionNames(AList: TStrings);
Public function GetFunctionDescription(AFunction: string): string;

Properties

Protected property CurrentRec: PExpressionRec read FCurrentRec write FCurrentRec;
Protected property LastRec: PExpressionRec read FLastRec write FLastRec;
Protected property ExpResult: PChar read FExpResult;
Protected property ExpResultPos: PChar read FExpResultPos write FExpResultPos;
Public property HexChar: Char read FHexChar write FHexChar;
Public property ArgSeparator: Char read FArgSeparator write FArgSeparator;
Public property Optimize: Boolean read FOptimize write FOptimize;
Public property ResultType: TExpressionType read GetResultType;

Description

Fields

Protected FWordsList: TSortedCollection;

This item has no description.

Methods

Protected function MakeRec: PExpressionRec; virtual;

This item has no description.

Protected procedure FillExpressList; virtual; abstract;

This item has no description.

Protected procedure HandleUnknownVariable(VarName: string); virtual; abstract;

This item has no description.

Protected procedure CompileExpression(AnExpression: string);

This item has no description.

Protected procedure EvaluateCurrent;

This item has no description.

Protected procedure DisposeList(ARec: PExpressionRec);

This item has no description.

Protected procedure DisposeTree(ExprRec: PExpressionRec);

This item has no description.

Protected function CurrentExpression: string; virtual; abstract;

This item has no description.

Protected function GetResultType: TExpressionType; virtual;

This item has no description.

Public constructor Create;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function DefineFloatVariable(AVarName: string; AValue: PDouble): TExprWord;

This item has no description.

Public function DefineIntegerVariable(AVarName: string; AValue: PInteger): TExprWord;

This item has no description.

Public function DefineDateTimeVariable(AVarName: string; AValue: PDateTimeRec): TExprWord;

This item has no description.

Public function DefineBooleanVariable(AVarName: string; AValue: PBoolean): TExprWord;

This item has no description.

Public function DefineStringVariable(AVarName: string; AValue: PPChar): TExprWord;

This item has no description.

Public function DefineFunction(AFunctName, AShortName, ADescription, ATypeSpec: string; AMinFunctionArg: Integer; AResultType: TExpressionType; AFuncAddress: TExprFunc): TExprWord;

This item has no description.

Public procedure Evaluate(AnExpression: string);

This item has no description.

Public function AddExpression(AnExpression: string): Integer;

This item has no description.

Public procedure ClearExpressions; virtual;

This item has no description.

Public procedure GetFunctionNames(AList: TStrings);

This item has no description.

Public function GetFunctionDescription(AFunction: string): string;

This item has no description.

Properties

Protected property CurrentRec: PExpressionRec read FCurrentRec write FCurrentRec;

This item has no description.

Protected property LastRec: PExpressionRec read FLastRec write FLastRec;

This item has no description.

Protected property ExpResult: PChar read FExpResult;

This item has no description.

Protected property ExpResultPos: PChar read FExpResultPos write FExpResultPos;

This item has no description.

Public property HexChar: Char read FHexChar write FHexChar;

This item has no description.

Public property ArgSeparator: Char read FArgSeparator write FArgSeparator;

This item has no description.

Public property Optimize: Boolean read FOptimize write FOptimize;

This item has no description.

Public property ResultType: TExpressionType read GetResultType;

This item has no description.


Generated by PasDoc 0.17.0.snapshot.