Leo

1 program Added 2026-02-09T09:59:32Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: Leo Language, Aleo Leo
Provenance: commit e82b77a4d7 · authored 2026-02-09T11:00:30+01:00 · agent claude-code · model opus

Sources mentioning this language

2 sources · pl_id: pl/leo
LLM (this repo) · 1Linguist

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.leolinguistprimary68.5K files

Related languages

Io (0.41)Lime (0.39)Lenguage (0.35)Xi (0.35)Eve (0.33)

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

Fibonacci

Provenance: commit e82b77a4d7 · authored 2026-02-09T11:00:30+01:00 · agent claude-code · model opus · WebSearch enabled
code.leo · license: GPL-3.0 · added: 2026-02-09T09:59:32Z
program fibonacci.aleo {
    // This calculates the n-th fibonacci number (up to 64th)
    transition fibonacci(public n: u8) -> u128 {
        assert(n <= 64u8);

        let f0: u128 = 0u128;
        let f1: u128 = 1u128;
        let c: u8 = 0u8;

        let z: u8 = reverse_bits(n);

        for i:u8 in 0u8..8u8 {
            if n > 0u8 {
                let f2i1: u128 = f1 * f1 + f0 * f0;
                let f2i: u128 =  f0 * (2u128 * f1 - f0);
                if z & 1u8.shl(c) == 0u8 {
                    f0 = f2i;
                    f1 = f2i1;
                } else {
                    f0 = f2i1;
                    f1 = f2i + f2i1;
                }
                c = c + 1u8;
                n = n >> 1u8;
            }
        }

        return f0;
    }

    function reverse_bits(n: u8) -> u8 {
        let reverse: u8 = 0u8;

        for i:u8 in 0u8..8u8 {
            if n > 0u8 {
                reverse = reverse << 1u8;

                if n & 1u8 == 1u8 {
                    reverse ^= 1u8;
                }

                n = n >> 1u8;
            }
        }

        return reverse;
    }
}

Contribute — propose a file extension

Tell us where to find evidence about Leo (mapped to pl/leo). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Leo/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Lenum leo-editor →