A statically typed, multi-paradigm interpreted language, made to be a beginner programming language that doesn't sacrifice long-term quality of life for short-term readability. Examples can be found in examples/.
A blog post about the development of this language can be found here
A simple Chirp program looks like this:
import random, time
print("hello world!")
var total = 0
forever {
let dice_roll = random:range(1,6)
print(f"Rolled a {dice_roll}!")
total += dice_roll
print(f"Total: {total}")
time:sleep(0.1)
}If you use Nix, you can compile the project without installing any additional packages onto your system by running the following command from the project root:
nix develop -c odin build src
./src.bin examples/hello_world.ch
# or with `odin run`:
nix develop -c odin run src -- examples/hello_world.chIf you don't use Nix, you will need to install Odin manually. From there you can compile with:
odin build src
./src.bin examples/hello_world.ch
# or with `odin run`:
odin run src -- examples/hello_world.ch