Skip to content

mariogeiger/LeekScript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status GPL Licence

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.

Demo

https://leekscript.com

Building

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/.

Usage

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

Tests, coverage, Valgrind, benchmark, doc

make test
make coverage # test coverage by gcov + lcov
make valgrind # valgrind default tool 
make callgrind # valgrind callgrind tool
make benchmark
make doc

Libraries used

License

Distributed under the GPL3 license. Copyright (c) 2016-2017, Pierre Lauprêtre

About

LeekScript langage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.1%
  • Other 1.9%