| Repo | Description |
|---|---|
| rl-lang | The main interpreter, stdlib, TUI REPL, and CLI |
| tree-sitter-rl | Tree-sitter grammar for Neovim, Helix, Zed, and more |
| rl-vscode | VS Code extension for syntax highlighting |
| dsl-html | DSL-based static site generator written in rl-lang |
| rl-check | GitHub Action for rl-lang CI integration |
get println, len from std::io
get pow, mod, factorial, fibonacci, is_prime from std::math
get PI from std::math::consts
fn collatz(int n) {
dec int steps = 0
while (n != 1) {
if (mod(n, 2) == 0) {
n = n / 2
} else {
n = n * 3 + 1
}
steps += 1
}
return steps
}
println(factorial(10)) // 3628800
println(fibonacci(15)) // 610
println(is_prime(97)) // true
println(collatz(27)) // 111
cargo install rl-langMIT or Apache 2.0 at your option.