I'm looking to add scripting capabilities to one of my program.
Do you know a good scripting library for Delphi?
I'm looking to add scripting capabilities to one of my program.
Do you know a good scripting library for Delphi?
I found link text this searching the net ;) recommended by Peter Below of TeamB ;)
After reading your comments, I found this looks better too.
Pascal Script is supposed to be very good. Never used it in my projects, though.
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 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.
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.
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.
When I was still working on a project in Delphi and beginning to look at Python, I used the Python for Delphi components.
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.
If you need speed, features and crossplatform (FreePascal) I would strongly suggest PaxCompiler.
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.