LeekScript

2015 — Linux

LeekScript is a language specially designed for Leek Wars to create artificial intelligences for leeks. Its syntax is very similar to JavaScript, C, Java or even PHP. It includes a large standard library of functions and data structures (lists, maps, sets, etc.).

The language also includes a set of tools for operating in the Leek Wars editor: autocompletion, word hover information, formatting. It is used by the combat generator, which adds a set of game-related classes and functions.

I've also created a C++ version that uses LLVM to compile user code into very fast machine code. This version is functional, but not currently used on Leek Wars for practical reasons: with the Java version, compilation is almost instantaneous, compared with a good minute with C++. Debugging is also much easier, as a serious error only leads to an exception in Java, whereas a segmentation fault or memory corruption can be extremely annoying in the production environment.

Platform
Linux
Technologies
Java
C++
LLVM
Users
~100 000
leekscript.pngleekscript-editor.webpleekscript-class.webp






More projects