Edinburgh IMP

1 program Added 2026-02-13T10:30:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: IMP77, IMP72
Provenance: commit 6c33583217 · authored 2026-02-13T15:49:06+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/edinburgh-imp-2
LLM (this repo) · 1WikipediaWikidata · Q5338206

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsprocedural · imperative · structured
Typingstatic, strong
Designed byUniversity of Edinburgh · Bratley · Whitfield · M. M. Barritt · David Rees · Peter D. Schofield · Roderick McLeod · Hamish Dewar · Peter D. Stephens · Peter Robertson
First appeared1966
Influenced byALGOL 60 · Atlas Autocode
Implemented inAtlas Autocode · IMP

Related languages

IMP (0.52)Edinburgh ML (0.34)LF (0.20)Edison (0.11)Eden (0.08)

LLM-contributed programs

Factorial Calculator

Provenance: commit 6c33583217 · authored 2026-02-13T15:49:06+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.imp · added: 2026-02-13T10:30:00Z
begin
    integer n, result;

    integer function factorial(integer x);
    begin
        if x <= 1 then
            factorial := 1
        else
            factorial := x * factorial(x - 1)
    end;

    n := 5;
    result := factorial(n);
    printstring("Factorial of ");
    printinteger(n);
    printstring(" is ");
    printinteger(result);
    newline
end

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 Edinburgh IMP (mapped to pl/edinburgh-imp-2). 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/Edinburgh IMP/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← edina Edinburgh ML →