Algol W

1 program Added 2025-11-05T20:05:45Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: ALGOL W
Provenance: commit 59658760af · authored 2025-11-05T21:05:45+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

3 sources · pl_id: pl/algol-w-2
LLM (this repo) · 1WikipediaWikidata · Q1538458

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.

Paradigmsmulti-paradigm: procedural · imperative · structured
Typingstatic, strong
Designed byNiklaus Wirth · Tony Hoare
First appeared1966
Influenced byALGOL 60
Implemented inPL360

Related languages

ALGOL 68 (0.43)ALGOL (0.38)ALGOL-M (0.36)ALGOL-T (0.35)ALGOL 68R (0.33)

LLM-contributed programs

Towers of Hanoi in Algol W

Provenance: commit 59658760af · authored 2025-11-05T21:05:45+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.algw · license: MIT · added: 2025-11-05T20:05:45Z
% The Towers of Hanoi %

BEGIN
    % N is the number of disks %
    INTEGER N;

    % The procedure that does the actual work %
    PROCEDURE HANOI(INTEGER VALUE M; STRING(1) VALUE A, B, C);
    BEGIN
        IF M > 0 THEN
        BEGIN
            HANOI(M-1, A, C, B);
            WRITE("Move disk from ", A, " to ", B);
            HANOI(M-1, C, B, A)
        END
    END;

    WRITE("Enter number of disks");
    READ(N);
    HANOI(N, "A", "B", "C")
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 Algol W (mapped to pl/algol-w-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/Algol W/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ALGOL N algol-58 →