Description | Uses | Classes, Interfaces, Objects and Records | Functions and Procedures | Types | Constants | Variables |
The RbwParser
unit declares TRbwParser along with associated classes and types.
Name | Description |
---|---|
record TFunctionRecord |
A TFunctionRecord is used to define a function that can be used in a TRbwParser. To use the function, you must first assign the fields of the TFunctionRecord and then call TRbwParser.Functions.Add. |
record TVariables |
TVariables are used in the protected section of TExpression. |
Class ERbwParserError |
ERbwParserError is raised if by TRbwParser to report user errors and some programmer errors. |
Class TFunctionClass |
TFunctionClass defines a function that can be called by TRbwParser. |
Class TFunctionStringList |
TFunctionStringList maintains a sorted list of TFunctionClasses. |
Class TConstant |
TConstant defines storage for a constant value such as "Abc", 1, 2.5, or True . |
Class TCustomValue |
TCustomValue is the abstract ancestor of TCustomVariable and TExpression. It adds Name and Classification properties to TConstant. |
Class TCustomVariable |
TCustomVariable is the abstract ancestor of TRealVariable, TIntegerVariable, TBooleanVariable and TStringVariable. |
Class TRealVariable |
TRealVariable stores a double that may change from one execution of a TExpression to the next. |
Class TIntegerVariable |
TIntegerVariable stores a integer that may change from one execution of a TExpression to the next. |
Class TBooleanVariable |
TBooleanVariable stores a boolean that may change from one execution of a TExpression to the next. |
Class TStringVariable |
TStringVariable stores a string that may change from one execution of a TExpression to the next. |
Class TNotifierComponent |
|
Class TExpression |
TExpression is the compiled version of an Expression generated by the TRbwParser.Compile method. |
Class TSpecialImplementor |
TSpecialImplementor is used in conjunction with TRbwParser.SpecialImplementorList to create a descendant of TExpression in TExpression.New. |
Class TSpecialImplementorList |
TSpecialImplementorList is the type of TRbwParser.SpecialImplementorList. It is used together with TSpecialImplementor to create a descendant of TExpression in TExpression.New. |
Class TOperator |
TOperator is used to define operators that are between two arguments or are before a single argument. |
Class TOperatorArgumentDefinition |
TOperatorArgumentDefinition is used to define valid argument types for an operator. |
Class TArgumentList |
Name is used to restrict ensure that in TOperatorDefinition only TOperatorArgumentDefinitions are added to ArgumentDefinitions. |
Class TOperatorDefinition |
TOperatorDefinition defines an operator. |
Class TRbwParser |
TRbwParser compiles expression in strings via the Compile method into TExpression objects that it owns. |
Class TSelectExpression |
TSelectExpression is used for "if" and "case" statements. It allows Evaluate to be faster and safer by only evaluating the arguments that will be used. |
procedure Register; |
function DataTypeToString(const DataType: TRbwDataType): string; |
function GenerateVariableName(const root: string): string; |
function IdenticalFormulas(const Formula1, Formula2: string): boolean; |
TRbwRealFunction = function(Values: array of pointer): double; |
TRbwIntegerFunction = function(Values: array of pointer): Integer; |
TRbwBooleanFunction = function(Values: array of pointer): Boolean; |
TRbwStringFunction = function(Values: array of pointer): string; |
TRbwDataType = (...); |
TRbwDataTypes = set of TRbwDataType; |
PFunctionRecord = ˆTFunctionRecord; |
PBoolean = ˆBoolean; |
TRealVariableClass = class of TRealVariable; |
TIntegerVariableClass = class of TIntegerVariable; |
TBooleanVariableClass = class of TBooleanVariable; |
TStringVariableClass = class of TStringVariable; |
TDecompileType = (...); |
TExpressionClass = class of TExpression; |
TArgumentCount = (...); |
TCreationMethod = (...); |
TOperatorClass = class of TOperator; |
TPrecedence = (...); |
OverloadedFunctionList: TObjectList; |
procedure Register; |
|
function DataTypeToString(const DataType: TRbwDataType): string; |
|
function GenerateVariableName(const root: string): string; |
|
function IdenticalFormulas(const Formula1, Formula2: string): boolean; |
TRbwRealFunction = function(Values: array of pointer): double; |
|
TRbwDataTypes = set of TRbwDataType; |
|
PFunctionRecord = ˆTFunctionRecord; |
|
PBoolean = ˆBoolean; |
|
TRealVariableClass = class of TRealVariable; |
TIntegerVariableClass = class of TIntegerVariable; |
TBooleanVariableClass = class of TBooleanVariable; |
TStringVariableClass = class of TStringVariable; |
TDecompileType = (...); |
Values
|
TExpressionClass = class of TExpression; |
|
TArgumentCount = (...); |
Values
|
TCreationMethod = (...); |
Values
|
TOperatorClass = class of TOperator; |
|
TPrecedence = (...); |
Values
|
OverloadedFunctionList: TObjectList; |
The following functions are included by default.
|