The PLIB Scripting Language.
Description: The PLIB Scripting Language (PSL) Library is a lightweight scripting language that is well suited for games or other interactive programs.
Keywords: PSL, PLIB, OpenGL, portable, script, language, Baker, Steve

# PSL: PLIB's Scripting Language. By Steve Baker

# Introduction

Whilst applications can use any suitable scripting language (Python, PERL, Lua, etc) in conjunction with PLIB, there are attractions to using PLIB's own scripting language: PSL.

In particular, in using PSL, you do not add any dependancies on your application. If the end user has the correct version of PLIB installed - then the scripting language is already there - for sure.

PSL is a very light-weight C-like language with some features borrowed from C++. It's also 'stackless' and very friendly to games applications.

There are two PSL documents:

- The PSL-enabled Applications Guide. -- If you are planning on including a PSL interpreter into your program, (making it 'PSL-enabled') then you should read the Applications Guide.
- The PSL Programmers Guide. -- If you are writing scripts for a PSL-enabled application, then you'll only need to read the Programmer's Guide.
- The PSL Implementation Guide. -- Explains some of PSL's internals, especially, the byte-code virtual machine.

Each application can extend PSL by providing additional built-in functions - so if you are a PSL programer then you'll probably need to read the documentation for whatever PSL-enabled application you are writing for. If you are writing a PSL-enabled application, then you'd better sit down and WRITE that document!