Asteroid

1 program Added 2026-02-26T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit f7f0d895e8 · authored 2026-02-26T12:14: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

Astro (0.21)Tabloid (0.19)Basic4Android (0.15)Filterscript (0.14)Arend (0.13)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit f7f0d895e8 · authored 2026-02-26T12:14:19+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ast · license: GNU FDL · added: 2026-02-26T00:00:00Z
-- Fibonacci sequence in Asteroid
-- Demonstrates pattern matching functions

load system io.

function fib
    with 0 do
        return 0
    orwith 1 do
        return 1
    orwith n do
        return fib(n-1) + fib(n-2)
    end

for i in 0 to 10 do
    io @println("fib(" + i + ") = " + fib(i)).
end

Contribute — propose a file extension

Tell us where to find evidence about Asteroid (mapped to pl/asteroid). 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/Asteroid/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← asterius-compiler ASTLang →