Alphard

1 program Added 2026-02-07T18:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 111706da11 · authored 2026-02-07T14:23:19+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/alphard
LLM (this repo) · 1PldbWikipediaWikidata · Q4735267

Related languages

Alpaca (0.21)A-Shell (0.18)SuperCard (0.18)Alpha Assembly (0.17)Alda (0.15)

LLM-contributed programs

Stack with Verification

Provenance: commit 111706da11 · authored 2026-02-07T14:23:19+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.alp · added: 2026-02-07T18:30:00Z
form stack(size: integer) =
    integer array s[1:size];
    integer top initially 0;
    invariant 0 <= top <= size;

    function push(x: integer)
        pre top < size
        post top = old top + 1 and s[top] = x;
    begin
        top := top + 1;
        s[top] := x
    end;

    function pop returns integer
        pre top > 0
        post top = old top - 1 and pop = old s[top];
    begin
        pop := s[top];
        top := top - 1
    end;

    function is_empty returns boolean
        post is_empty = (top = 0);
    begin
        is_empty := (top = 0)
    end
end stack

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 Alphard (mapped to pl/alphard). 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/Alphard/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Alphaprint alphard-programming-language →