Ratfor

1 program Added 2026-02-06T08:54:38Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Rational Fortran
Provenance: commit b0b93690c0 · authored 2026-02-06T09:55:22+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/ratfor
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q4115288

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.

Designed byBrian Kernighan
First appeared1976
Influenced byFortran · C
Homepagehttp://sepwww.stanford.edu/doku.php?id=sep:software:ratfor

Related languages

Ratfiv (0.62)Fortran (0.33)WATFOR (0.33)FORTRAN III (0.25)ICETRAN (0.24)

LLM-contributed programs

Factorial Calculator

Provenance: commit b0b93690c0 · authored 2026-02-06T09:55:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.r · added: 2026-02-06T08:54:38Z
# Factorial program in Ratfor
# Demonstrates structured programming in Ratfor

      program factorial
      integer n, result, i

      write(6,*) 'Enter a positive integer:'
      read(5,*) n

      if (n < 0) {
          write(6,*) 'Error: negative number'
          stop
      }

      result = 1
      for (i = 2; i <= n; i = i + 1) {
          result = result * i
      }

      write(6,*) 'Factorial of', n, 'is', result
      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 Ratfor (mapped to pl/ratfor). 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/Ratfor/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Ratfiv Rational →