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/ratforWikipedia 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 by | Brian Kernighan |
|---|---|
| First appeared | 1976 |
| Influenced by | Fortran · C |
| Homepage | http://sepwww.stanford.edu/doku.php?id=sep:software:ratfor |
Related languages
LLM-contributed programs
Factorial Calculator
Provenance: commit b0b93690c0 · authored 2026-02-06T09:55:22+01:00 · agent claude-code · model sonnet · WebSearch disabled
# 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.)