Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time


Lit is a dynamicaly-typed language, inspired by highly-hackable Lua and familiar C-styled JavaScipt. You can try it out in your browser!

Lua JavaScript Lit
Easy classes Example
Arrays start from 1 0 0
String interpolation Example
Operator overloading Example
Easy to embed Example
Has no undefined
Syntax sugar like += Example
Coroutines (fibers) Example

Sounds good? Check out some challenge solutions or try lit for yourself!


Lit has no external dependencies (besides Emscripten, but that's only for the HTML5 builds), so you will only need gcc, make & cmake.

On linux, you will also need to install libreadline:

sudo apt-get install libreadline6-dev
git clone && cd lit 
git submodule init
git submodule update
cmake .
sudo make install

That should install lit, and you should be able to access it from the console. Let's write our first program:

print("Hello, world!")

Just run it, and you should see the familiar message in your terminal:

lit hello.lit

That's it! If you want to learn more about lit, visit the wiki!

Syntax Highlighting

If you want syntax highlighting in Visual Studio Code, see lit-vscode.


This is not the first version of lit. And not second. Sadly, most of the versions got lost along the way, but you still can checkout previous version of lit, that was staticly-typed!