views:

1593

answers:

12

I'm looking to add scripting capabilities to one of my program.

Do you know a good scripting library for Delphi?

+1  A: 

I found link text this searching the net ;) recommended by Peter Below of TeamB ;)

After reading your comments, I found this looks better too.

CheGueVerra
Thanks Che. But the lastest version is for D5, so it seems not really up-to-date and still maintained.
vIceBerg
+2  A: 

Pascal Script is supposed to be very good. Never used it in my projects, though.

gabr
Grrr, there's no way to make that link appear as a hyperlink! Must be the Jeff's HTML sanitizer :(Anyway, that's the same Pascal Script that Nick recommended few minutes later...
gabr
Reported as a bug: http://stackoverflow.uservoice.com/pages/general/suggestions/39072. You can vote for it if it bothers it too.
gabr
Jim, please don't change the url into snipurl form - it may not last long.
gabr
Got solution on uservoice!
gabr
+18  A: 

I'd strongly recommend PascalScript from RemObjects.

Nick Hodges
Coming from a TeamB member, I think it's the accepted answer! ;-)
vIceBerg
Former TeamB, now the Delphi product manager.
Jim McKeeth
Nick's link to PascalScript doesn't work. It should be: http://www.remobjects.com/ps.aspx
lkessler
I agree PascalScript is great. Though if speed is important, then I've found FastScript from FastReports outperforms RemObject's PascalScript, which is why I choose to use FastScript. Featurewise, they are very similar.
Ben Daniel
+1 for PascalScript, but if you need even more speed and features you should try PaxCompiler.
ErvinS
+3  A: 

I am thinking about adding TMSScripterStudioPro to my application. It comes with what looks like a decent IDE, it's priced reasonably and TMS support has always been among the best I have found anywhere.

I've used it to good effect - recommended.
mj2008
+1  A: 

FastScript seems very nice.

Fabio Gomes
+5  A: 

I cannot speak for any other library, but I have used Dream Scripter for quite a while (I even patched it up to Delphi 2007). My strong advice is NOT to use it, because it is the most horrible code I have ever seen. I will definitely not upgrade it for Delphi 2009. So whatever your experiences are, please share them.

Uwe Raabe
+3  A: 

There are plenty of options available. The first question is what language is your intended audience going to be familiar with, and your vendor support requirements. For a commercial solution, I would suggest FastScript as it supports Pascal, JScript, C++Script and BasicScript as language targets.

For the "freeware" self-support solution, I have used awScript sucessfully since Delphi 5ish. It wraps the Microsoft ActiveX libraries so you can write scripts directly in javascript or vbscript. Exposing existing Delphi classes to the scripting engine is trivial. I recently "upgraded" the library to Delphi 2009 by renaming the package and making a few minor changes (like adding version defines, and fixing small string references), and have yet to run into any difficulties thus far.

skamradt
+3  A: 

There is also "Delphi Web Script", which despite the name is not really something for the web but a multi purpose Delphi like scripting language implemented in Delphi. It's open source and available from sourceforge (project dws2). I have successfully used it in a project about 3 years ago but it looks as if it is no longer actively developed.

Got resurrected, now at http://code.google.com/p/dwscript/
Eric Grange
+6  A: 

When I was still working on a project in Delphi and beginning to look at Python, I used the Python for Delphi components.

edomaur
+3  A: 

PHP4Delphi allows you to call php scripts from within a delphi application, and while not strictly a scripting solution for a Delphi app, with a little bit of tweaking could easily be used as such.

Toby Allen
A: 

If you need speed, features and crossplatform (FreePascal) I would strongly suggest PaxCompiler.

ErvinS
+1  A: 

LMD ScriptPack This package enables Delphi/CBuilder applications to support active scripting languages installed in Windows Scripting Host (such as VB Script, JScript, etc). Included integrated debugger for handling the supported script languages. Since Release 5.1 a native PascalScript implementation is available.

Alexander Hramov