If you want to try out lit, you have a few options.
- In your browser.
- On your computer. Download and compile lit CLI to run code files.
- Embedded into your code. You can also run lit scripts directly from your C/C++ code.
On your computer
Lit has no required external dependencies (besides Emscripten, but that's only for the HTML5 builds), so you will only need gcc, make & cmake in order to build the CLI.
On linux, you will also need to install libreadline:
sudo apt-get install libreadline6-dev
git clone https://github.com/egordorichev/lit/
sudo make install
That will install lit, and now you are able to access it from the console. Let's do what every programmer ever has to do at least once, and write a hello world program:
Run it, and you should see the familiar message in your terminal:
~ $ lit hello.lit
Lit CLI has a bunch of useful arguments, like
-d, you can read more about them in the CLI arguments section.