evil-script
Simple C-like scripting engine written in Free Pascal
Evil Script is a C like scripting engine written in Free Pascal
Evil Script is a small, embeddable scripting language with C like syntax, implemented in Free Pascal. It is maintained by Kagamma and released under the MIT license.
What the engine is
Evil Script began as the scripting language for a project called satania-buddy and is now a standalone, general purpose, embeddable scripting engine. Despite the name, it is a normal language implementation with C like syntax. The README documents how to build it with the command fpc -O4 evil.pas and run a script with evil examples/hello.evil.
Platforms and embedding
The interpreter has been tested on DOS with the go32v2 target, Windows in x86 and x64, and Linux in x64 and AArch64, and it should work on any platform except 8 bit and 16 bit systems. Enabling the SE_LIBFFI option lets scripts call external functions from DLLs and shared objects. The docs explain how to embed the engine into an application by reading the Test.pas and evil.pas source files.
Performance and design
The interpreter uses indirect threading and performs close to CPython in most cases. On x86-64 CPUs it adds a JIT compilation mode that runs much faster than the pure interpreter for number heavy work. The README links related projects such as poca and PascalScript as points of comparison for anyone building scripting support into a Pascal application.
Editorial conclusion
Evil Script is released under the MIT license, is written in Free Pascal, and gains a JIT compilation mode on x86-64 CPUs for faster number crunching.
Community notes