A small programming language, written in Rust
This project is very much a work in progress: you can check the documentation site for more information
Download the latest abra
binary from the Releases page.
You should then be able to run
abra run my-file.abra
It should look familiar, a lot of inspiration was drawn from modern languages like Swift and Kotlin:
func fib(n: Int): Int {
if (n == 0) {
0
} else if (n == 1) {
1
} else {
fib(n - 2) + fib(n - 1)
}
}
println(fib(10))
You can also see and play with more examples on the Try It Out page of the language documentation site.