WATFIV-S

1 program Added 2026-03-12T00:18:06Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Waterloo Fortran IV with Structure, Structured WATFIV
Provenance: commit 2a4646c178 · authored 2026-03-12T01:18:40+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

WATFIV (0.53)WATFOR (0.35)SFTRAN (0.31)Ratfiv (0.24)FORTRAN IV (0.20)

LLM-contributed programs

Bubble Sort

Provenance: commit 2a4646c178 · authored 2026-03-12T01:18:40+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.f · added: 2026-03-12T00:18:06Z
C     WATFIV-S BUBBLE SORT PROGRAM
C     DEMONSTRATES STRUCTURED PROGRAMMING EXTENSIONS
      INTEGER ARRAY(10), N, I, TEMP
      LOGICAL SWAPPED
      DATA ARRAY /64, 34, 25, 12, 22, 11, 90, 45, 33, 1/
      N = 10
      SWAPPED = .TRUE.
      WHILE (SWAPPED) DO
        SWAPPED = .FALSE.
        DO 20 I = 1, N-1
          IF (ARRAY(I) .GT. ARRAY(I+1)) THEN
            TEMP = ARRAY(I)
            ARRAY(I) = ARRAY(I+1)
            ARRAY(I+1) = TEMP
            SWAPPED = .TRUE.
          END IF
   20   CONTINUE
      END WHILE
      DO 30 I = 1, N
        WRITE(6,*) ARRAY(I)
   30 CONTINUE
      STOP
      END

Contribute — propose a file extension

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