Re: [DUG] Expression Parser/Evaluator

2007-10-24 Thread Rohit Gupta
I was not following the conversation. However we use Delphi webscript. David Brennan wrote: Hi, Another question in the popular family of “what is the best component suite for X?”… Can anyone recommend a good expression parser/evaluator? Ideally a bit more than just mathematical expres

Re: [DUG] Expression Parser/Evaluator

2007-10-24 Thread Phil Scadden
You could try Pascal Script http://www.remobjects.com/page.asp?id={9A30A672-62C8-4131-BA89-EEBBE7E302E6} This is fine product, but as far as I can see it still isnt that great for repeated invocation of same function but with different data. Wonderful for extention though, fast to compile, a

Re: [DUG] Expression Parser/Evaluator

2007-10-24 Thread Alister Christie
You could try Pascal Script http://www.remobjects.com/page.asp?id={9A30A672-62C8-4131-BA89-EEBBE7E302E6} Alister Christie Computers for People Ph: 04 471 1849 Fax: 04 471 1266 http://www.salespartner.co.nz PO Box 13085 Johnsonville Wellington David Brennan wrote: Hi, Another question in t

RE: [DUG] Parser/Evaluator

2007-10-24 Thread Stacey Verner
Python scripts are compiled to byte code and the byte code is interpreted. It won't reparse code it has already byte compiled. I haven't looked into the Python For Delphi implementation but I would be surprised if you couldn't get it to import and compile your script and then call the already comp

[DUG] Parser/Evaluator

2007-10-24 Thread Phil Scadden
Looking at delphi/Python, I dont think it cuts it. Suppose you want to graph a user-entered function for a 1000 points. While you can pass variables etc, it looks to me like the python function is being parsed with every call? That is slow compared to parsing once and storing execution tree, the

RE: [DUG] Expression Parser/Evaluator

2007-10-24 Thread Stacey Verner
DelphiForPython allows you to execute python scripts, and even reference delphi variables and objects from within those scripts. All you need to deploy is pythonXX.dll. Stacey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brennan Sent: Wednesday, 24 October 2007 16:19

RE: [DUG] Expression Parser/Evaluator

2007-10-24 Thread David Brennan
Hi Dennis, Interesting suggestion. From a quick look it appears a Python DLL is required? While that is possible it is a definite negative against using Python. We really want to avoid more external DLL's if we can. Thanks, David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Re: [DUG] Expression Parser/Evaluator

2007-10-24 Thread Dennis Chuah
Try Python for Delphi. It can do all that you want below, plus a lot more. And besides, the price is right! - Original Message - From: "David Brennan" <[EMAIL PROTECTED]> To: "DUG" Sent: Wednesday, October 24, 2007 4:18 PM Subject: [DUG] Expression Parser/Evaluator Hi, Anothe