Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TCustomParser

Unit

UCalcParser10

Declaration

type TCustomParser = class(TComponent)

Description

 

Fields

 NameDescription
Protected FunctionOne  
Protected FunctionTwo  

Methods

Overview

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure AddFunctionOneParam(const AFunctionName: string; const Func: TMathProcedure);
Public procedure AddFunctionTwoParam(const AFunctionName: string; const Func: TMathProcedure);
Public procedure ClearFunction(const AFunctionName: string);
Public procedure ClearFunctions;
Public procedure ClearVariable(const AVarName: string);
Public procedure ClearVariables;
Public procedure FreeExpression;
Public function GetVariable(const VarName: string): extended;
Public function ParseExpression(const AnExpression: string): boolean;
Public function SetVariable(VarName: string; const Value: extended): PParserFloat;
Public function VariableExists(const AVarName: string): boolean;

Description

Public constructor Create(AOwner: TComponent); override;

 

Public destructor Destroy; override;

 

Public procedure AddFunctionOneParam(const AFunctionName: string; const Func: TMathProcedure);

 

Public procedure AddFunctionTwoParam(const AFunctionName: string; const Func: TMathProcedure);

 

Public procedure ClearFunction(const AFunctionName: string);

 

Public procedure ClearFunctions;

 

Public procedure ClearVariable(const AVarName: string);

 

Public procedure ClearVariables;

 

Public procedure FreeExpression;

 

Public function GetVariable(const VarName: string): extended;

 

Public function ParseExpression(const AnExpression: string): boolean;

 

Public function SetVariable(VarName: string; const Value: extended): PParserFloat;

 

Public function VariableExists(const AVarName: string): boolean;

 

Properties

Overview

Protected property A: ParserFloat;
Protected property B: ParserFloat;
Protected property C: ParserFloat;
Protected property D: ParserFloat;
Protected property E: ParserFloat;
Published property Expression: string;
Public property LinkedOperationList: POperation;
Published property OnParserError: TParserExceptionEvent;
Public property ParserError: boolean;
Published property PascalNumberformat: boolean;
Protected property T: ParserFloat;
Published property Value: extended;
Public property Variable[const VarName: string]: extended;
Protected property X: ParserFloat;
Protected property Y: ParserFloat;

Description

Protected property A: ParserFloat;

predefined variables

Protected property B: ParserFloat;

 

Protected property C: ParserFloat;

 

Protected property D: ParserFloat;

 

Protected property E: ParserFloat;

 

Published property Expression: string;

 

Public property LinkedOperationList: POperation;

 

Published property OnParserError: TParserExceptionEvent;

 

Public property ParserError: boolean;

 

Published property PascalNumberformat: boolean;

 

Protected property T: ParserFloat;

 

Published property Value: extended;

!~ To evaluate an expression simply query this property.

Public property Variable[const VarName: string]: extended;

 

Protected property X: ParserFloat;

 

Protected property Y: ParserFloat;

 


Generated by DIPasDoc 0.8.6 on ven. 09/ janv. 2004 00:52:25