Difference between revisions of "Pascal Script"

From Free Pascal wiki
Jump to navigationJump to search
Line 63: Line 63:
  
 
===The Example Application===
 
===The Example Application===
 +
Below is example console mode pascal script compiler/interpreter:

Revision as of 21:14, 22 October 2005

About

RemObjects Pascal Script is Pascal/Delphi/Lazarus compatible interpreter with bytecode compiler. It currently works on Windows and Linux 32-bit Intel platform processor. It was created and is maintained by Carlo Kok and copyrighted by RemObjects software as freeware with full source available. Fix of few incompatibilities between ROPS (RemObjects Pascal Script) and FreePascal 2.0.1 has done by Bogusław Brandys with a great help of many peoples from #fpc and #lazarus-ide IRC channels . Thank You.


Its main caracteristics are :

  • almost all Object Pascal syntax supported
  • Delphi/Lazarus classes supported (however cannot be declared inside of script)
  • can create fully workable GUI forms with components
  • easily import new classes into script engine


The download contains the components package for Delphi (various versions) and Lazarus,and few samples for Delphi (which could or 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 see someday it works on PowerPC and 64-bit platforms.

Screenshot

Here are some screenshots how it looks under Lazarus:


File:?.png


License

BSD like, see full text.

Download

Here you can download beta releases for testing: Lazarus CCR Files page.

Change Log

  • Version 1.0 2005/10/21


Dependencies / System Requirements

  • None

Status: Beta

Issues: Needs testing on Windows. Needs testing on Linux. Almost working ;-)

Installation

  • Create the directory lazarus\components\pascalscript
  • On this directory, unzip here the files
  • Open lazarus
  • Open the package pascalscript.lpk with Component/Open package file (.lpk)
  • Click on Compile
  • Click on Install

Usage

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

See the example projects.

See also this article from RemOjects.

The Example Application

Below is example console mode pascal script compiler/interpreter: