Pawn, formerly known as Small, is an open source scripting language primarily intended as an embeddable scripting language
Pawn is a typeless language influenced by Small-C. and has C-like syntax.
Pawn is used in the San Andreas Multiplayer mod, Half-Life mod, AMX Mod X and Source Engine based SourceMod as well as various other projects.
Features
- Pawn is a C-like Scripting Language
- You can include files in Pawn; so you can arrange a neat structure of Pawn code
- Pawn is a scripting language with a compiler that performs static checks, and an abstract machine with (static) P-code verification and dynamic checks.
- For porting purposes, Pawn is written in ANSI C as much as possible; Endian issues are handled.
- Pawn supports Unicode/UCS-4 and UTF-8, as well as codepages. The compiler can convert source code entered in a particular codepage to Unicode; it also supports source code files in UTF-8 format.
- It has been fitted on an Atmel ATmega128 microcontroller, Philips LPC2138 and LPC2106 microcontrollers (ARM7TDMI core with 32 kiB RAM), as well as on a Texas Instrument's MSP430F1611 (MSP430 core with 10 kiB RAM and 48 kiB Flash ROM). Using code overlays that are loaded on demand, pawn is able to run large scripts in little memory.
- Documenting the source code can be done with "documentation comments;" the pawn compiler extracts those comments, combines them with information it deduces from the source code and writes an XML file that is immediately viewable (and printable) with a web browser.
- Pawn supports states and automatons in the language, including state-local variables.
Resources