Unit Expressions

Classes

TBooleanLiteral -
TExpression -
TFloatLiteral -
TFunction -
TIntegerLiteral -
TParameterList -
TStringLiteral -

Functions

CreateExpression - parser.

Types

TExprType
TIdentifierFunction

Constants

MaxStringLength
NExprType

Variables

InstanceCount


Functions


function CreateExpression( const S: String; IdentifierFunction: TIdentifierFunction): TExpression;

parser...

Types


TExprType = (ttString, ttFloat, ttInteger, ttBoolean);
main documentation block just before implementation. This unit written by Martin Lafferty of Production Robots Engineering Ltd 18/6/97 If you have any questions/comments I would be pleased to hear from you. If you discover any bugs in this software I would be VERY pleased to hear from you. If you want to offer me work implementing extensions or applications using this software then I will be moderately pleased to hear from you (if I am busy) or VERY VERY pleased to hear from you (if I am not) in any event, my address is: robots@enterprise.net I have found this code very useful and surprisingly robust. I sincerely hope you do too. This code developed with Delphi 3.0, but I can't offhand think of any reason why it wouldn't work with Delphi 2.0. I have a 16 bit (Delphi 1.0) version somewhere: email me if you are interested in that and I will dig it out. It is not well documented though.
TIdentifierFunction = function( const Identifier: String;
                                  ParameterList: TParameterList): TExpression of Object

Constants

MaxStringLength = 255

NExprType = ('String', 'Float', 'Integer', 'Boolean')

why?} {to get a string representation of TExprType use NExprType[ExprType]

Variables

InstanceCount : Integer = 0

for debugging version, checking memory leaks