BAScript

Welcome to BAScript

BAScript is a simple scripting engine written in Object Pascal you can use to add scripting to your Delphi, Lazarus or Free Pascal applications ("host program") to extend their functionality without the need of recompiling them.

The virtual machine defines its own language, called the BAScript language.  It is a low-level language, somewhat similar to the Assembler language, which is not intended to be easy to program but easy to execute.  So it is recommendable to use other higher level languages and translate them into BAScript language.  Package includes a BriefC compiler that translates from C-like to the BAScript language.

You should note that BAScript is intended to be lightweight, so it has not mechanisms to handle complex data structures or large amounts of data or code.  On the other hand, it has less need for memory and resources than other scripting interpretors.  If you need a more powerful scripting engine you may try RemObject's PascalScript.

Download

Features

Available features:

  • Works for Free Pascal and Lazarus.
  • Simple FORTH-like and C-like scripting languages.
  • Simple API interface.
  • Simple, easy to modify, run-time library for your scripts.

Planned features:

  • Full compatibility with Delphi.
  • Faster byte-code interpretor.
  • Better debugging tools.
  • Another translator/compiler for a BASIC-like scripting language.
  • SynEdit syntax highlighters for all supported scripting languages.

Download