Rev

1 program Added 2026-03-12T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: RevBayes language
Provenance: commit 863b1f2afc · authored 2026-03-12T01:33:48+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/rev
LLM (this repo) · 1Esolang

Related languages

Rez (0.44)Io (0.35)Xi (0.35)Eve (0.33)Lime (0.33)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit 863b1f2afc · authored 2026-03-12T01:33:48+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.rev · added: 2026-03-12T10:00:00Z
# Fibonacci sequence in Rev (RevBayes probabilistic programming language)
# Rev is the scripting language for RevBayes, used for Bayesian phylogenetic inference

function fibonacci(n) {
    if (n <= 0) {
        return 0
    } else if (n == 1) {
        return 1
    } else {
        return fibonacci(n - 1) + fibonacci(n - 2)
    }
}

print("Fibonacci sequence:")
for (i in 0:10) {
    result <- fibonacci(i)
    print("fib(" + i + ") = " + result)
}

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.)

Contribute — propose a file extension

Tell us where to find evidence about Rev (mapped to pl/rev). 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/Rev/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← reuse-description-language Revapp →