LeekScript is a language initially designed for Leek Wars, and for games in general. Design to be simple to use for beginners, but with rich syntax and functionnalities, and a good speed thanks to an optimized JIT compiler.
The project is still in development, and shouldn't be used for the moment.
make
The executable leekscript
is in the build/
folder.
Export as shared library
make lib
libleekscript.so
will be in build/
folder. You can make install
to copy it in /usr/lib/
.
Run a LeekScript top-level
leekscript
Execute a file or a code snippet
leekscript my_file.leek
leekscript "[5, 6, 7] ~~ x -> x ** 2"
Option | Effect |
---|---|
-v -V --version | Print the current version |
-e -E --example | Output an example code |
-j -J --json | Get the result in JSON format |
-t -T --time | Print execution time and operations |
-d -D --debug | Print debug information like types |
-nop --no-operations | Disable operations counting |
make test
make coverage # test coverage by gcov + lcov
make valgrind # valgrind default tool
make callgrind # valgrind callgrind tool
make benchmark
make doc
- GNU LibJIT, by Rhys Weatherley, under GPL license
- GNU MP, by Torbjörn Granlund, under GPL license
- JSON for modern C++, by Niels Lohmann, under MIT license
Distributed under the GPL3 license. Copyright (c) 2016-2017, Pierre Lauprêtre