Abra is an embeddable scripting language with a strong type system. This repository holds the compiler and language tooling.
fn fib(n) {
if n < 2 {
return n
}
fib(n - 1) + fib(n - 2)
}
println("The first 10 fibonacci numbers are:")
for i in 10 {
println(fib(i))
}brew install --HEAD anandrav/abra/abra
Requires Rust and Cargo.
git clone https://github.com/anandrav/abra.git
cd abra
./scripts/install
Optionally install editor extensions:
./scripts/install --vim # Vim syntax highlighting
./scripts/install --vscode # VS Code extension (requires Node 20+)
./scripts/install --intellij # IntelliJ plugin (requires JDK 21)
User guide and language reference: https://anandrav.github.io/abra/about.html
Abra is distributed under the Mozilla Public License 2.0.
The MPL is a file-level copyleft license: you can use Abra in your own projects (including proprietary ones), but modifications to Abra's source files must be released under the same license. If you ship Abra as part of a product, include the MPL 2.0 license text and a link to this repository in your third-party notices.