ALGOL

1 program Added 2025-10-22T15:05:04Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: Algol 60, ALGOL 60
Provenance: commit 3ea3f66c1b · authored 2025-10-22T17:05:04+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

7 sources · pl_id: pl/algol
LLM (this repo) · 1PldbLinguistPygmentsWikipediaRosettacodeWikidata · Q188436

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 byBauer · Bottenbruch · Rutishauser · Samelson · Backus · Katz · Perlis · Wegstein · Naur · Vauquois · van Wijngaarden · Woodger · Green · McCarthy
First appeared1958

Extensions claimed by this language

3 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.alglinguistprimary98.8K files
.algpygmentsprimary98.8K files
.portugolpygmentssecondary80 files

Related languages

ALGOL 60 (0.65)ALGOL 68 (0.47)Algol W (0.38)ALGOL 68R (0.37)ABC ALGOL (0.35)

LLM-contributed programs

Determinant of a Matrix in ALGOL 60

Provenance: commit 3ea3f66c1b · authored 2025-10-22T17:05:04+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.alg · added: 2025-10-22T15:05:04Z
real procedure det(A, n); value n; array A; integer n;
begin
    integer i, j, k;
    real d;
    boolean procedure even(k); value k; integer k;
        even := k = 2 × (k ÷ 2);
    d := 1;
    for k := 1 step 1 until n - 1 do
    begin
        for i := k + 1 step 1 until n do
        begin
            for j := k + 1 step 1 until n do
                A[i,j] := A[i,j] - A[i,k] × A[k,j] / A[k,k];
            A[i,k] := 0
        end
    end;
    for k := 1 step 1 until n do d := d × A[k,k];
    det := if even(n) then d else -d
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.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.alg/0.algpredicates[{"kind": "any", "regexes": ["(?i)^comment\\b.*(;|comment)", "^#[^#\\r\\n]+#$", "(?i)\\b(integer|real|boolean|string)\\b\\s+\\w+\\s*:=\\s*", "(?i)^begin[\\s\\S]*^end"]}]

Contribute — propose a file extension

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