Xi

1 program Added 2026-03-06T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Xi language
Provenance: commit d7d21c9e6b · authored 2026-03-06T00:58:19+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Io (0.47)Eve (0.45)Lime (0.45)Nyx (0.45)Rez (0.45)

LLM-contributed programs

Factorial

Provenance: commit d7d21c9e6b · authored 2026-03-06T00:58:19+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.xi · added: 2026-03-06T10:00:00Z
use io
use conv

// Compute factorial iteratively
factorial(n: int): int {
    result: int = 1
    i: int = 2
    while i <= n {
        result = result * i
        i = i + 1
    }
    return result
}

main(args: int[][]) {
    i: int = 0
    while i <= 10 {
        print(unparseInt(i))
        print("! = ")
        println(unparseInt(factorial(i)))
        i = i + 1
    }
}

Contribute — propose a file extension

Tell us where to find evidence about Xi (mapped to pl/xi). 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/Xi/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← XHTML Mobile Profile xidoc →