Skip to content
@rl-lang

The RL Programming Language

rl-lang

A language that is fast to write, simple to read, built in Rust from the ground up.


Repositories

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

Quick look

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

Installation

cargo install rl-lang

Links

License

MIT or Apache 2.0 at your option.

Pinned Loading

  1. rl-lang rl-lang Public

    Fast to write. Simple to read. Built in Rust from the ground up.

    Rust 13 6

Repositories

Showing 10 of 12 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…