Pascal Script

This is an old revision of Pascal Script, edited by Jwdietrich at . The current revision is 13314.

Adding ARM

Pascal Script is an Object Pascal/Delphi/Lazarus-compatible interpreter with bytecode compiler that delivers a scripting environment for application programs. It currently works in macOS, Windows and Linux on 32-bit and 64-bit Intel, PowerPC and ARM processors. It was created and is maintained by Carlo Kok and is copyrighted by RemObjects software as freeware with full source available. The fix of few incompatibilities between ROPS (RemObjects Pascal Script) and FreePascal 2.0.1 was made by Bogusław Brandys with a great help of many developers from #fpc and #lazarus-ide IRC channels. Thank You.

Its main characteristics are :

The download contains the components package for Delphi (various versions) and Lazarus + a few samples for Delphi (which may or may not work under FreePascal+ Lazarus) It is work in progress...

This component is now designed for cross-platform applications, however limited to 32-bit Intel platform only. I'd like to make it work on PowerPC and 64-bit architectures someday. (Note: The current version seems to support 64-bit machines, according to RemObjects.)

Screenshots

Here are some screenshots how it looks under Lazarus:

License

BSD like, see full text.

Download

This is the main page of RemObjects Pascal Script distribution. There are download links for binary packages.

You can get the source from their SubVersion repository by command

svn co -r HEAD http://code.remobjects.com/svn/pascalscript pascalscript

Change Log

Dependencies / System Requirements

Installation

Compilation errors

When compiling to install the package, the compiler will stumble on two lines in uPSR_forms.pas:

RegisterMethod(@TAPPLICATION.HELPCOMMAND, 'HELPCOMMAND'); // <-- this one
RegisterMethod(@TAPPLICATION.HELPCONTEXT, 'HELPCONTEXT');
RegisterMethod(@TAPPLICATION.HELPJUMP, 'HELPJUMP');       // <-- and that one

Simply comment out the lines. These methods are not yet implemented in the LCL.

Usage

Drop the PascalScript component on a form and a few plugins. (TODO:finish)

If you get the error "Fatal: Can't find unit uPSCompiler used by ...", open up the pascalscript package, and under the "more" options, select "add to project".

See the example projects.

See also these articles from RemObjects.

Example application

Sample small console mode interpreter application: Pascal Script Examples (psce)

Sample components Demo with Lazarus GUI: http://sourceforge.net/projects/maxbox/files/Lazarus/PASCALSCRIPT_LAZARUS.zip/download

See also