Thorn - Getting Started

thorn is pure lazy functional programming language for making ascii art animations. Check out some examples in the examples/ directory.

It's still in active development. If you encounter any bugs or issues, please let me know.

dragon animation

To install thorn from source, follow these steps. the thorn compiler has no dependencies aside from the rust compiler and standard library. thorn-to-sh and thorn-to-gif need ghc and ffmpeg.

sudo apt install cargo ghc ffmpeg
git clone https://codeberg.org/olekawaii/thorn.git
cd thorn
sh build.sh
Test that everyting is working. You should see the obove dragon animation playing.
cd examples/dragon/src
thorn main.th | thorn-to-sh | sh

The thorn compiler works like a calculator. It parses and compiles the source code into an internal representation, but afterwards also executes it, printing the evaluated main function.

Next