BabyCobol

1 program Added 2026-02-24T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: BabyCOBOL
Provenance: commit a3c8139a48 · authored 2026-02-24T13:26:57+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

Babel (0.27)GnuCOBOL (0.22)Basil (0.19)Birl (0.19)BALGOL (0.19)

LLM-contributed programs

FizzBuzz

Provenance: commit a3c8139a48 · authored 2026-02-24T13:26:57+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.cob · added: 2026-02-24T00:00:00Z
      * NB: ANY does not exist in BabyCobol so the elegant
      * EVALUATE-based COBOL-style solution is impossible here.
      * Note the subtly unbalanced IF/ENDs yet valid END at the end.
      IDENTIFICATION DIVISION.
      PROGRAM-ID. FIZZBUZZ.
      DATA DIVISION.
      01 INT PICTURE IS 9(3).
      01 REM LIKE INT.
      01 TMP LIKE INT.
      PROCEDURE DIVISION.
      LOOP VARYING INT TO 100
               DIVIDE 3 INTO INT GIVING TMP REMAINDER REM
              IF REM \= 0
               THEN DISPLAY "Fizz" WITH NO ADVANCING
              DIVIDE 5 INTO INT GIVING TMP REMAINDER REM
              IF REM \= 0
               THEN DISPLAY "Buzz" WITH NO ADVANCING
              DIVIDE 15 INTO INT GIVING TMP REMAINDER REM
              IF REM \= 0
               THEN DISPLAY ""
      ELSE DISPLAY INT
      END.

Contribute — propose a file extension

Tell us where to find evidence about BabyCobol (mapped to pl/babycobol). 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/BabyCobol/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← baby-modula-3 Babylang →