CL
1 program
Added 2026-03-11T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Control Language, IBM CL, AS/400 CL
Provenance: commit fb89002e07 · authored 2026-03-11T18:07:52+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
8 sources · pl_id:
pl/common-lispWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: functional · procedural · reflective · meta |
|---|---|
| Typing | dynamic, strong |
| Designed by | Steve Russell · Timothy P. Hart · Mike Levin · John McCarthy |
| First appeared | 1960 |
| Influenced by | Information Processing Language (IPL) |
Extensions claimed by this language
15 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.cl | pygments | primary | 498.5K files |
.lisp | linguist | primary | 2.5M files |
.asd | linguist | secondary | 266.8K files |
.cl | linguist | secondary | 498.5K files |
.l | linguist | secondary | 770.6K files |
.lisp | pygments | secondary | 2.5M files |
.lsp | linguist | secondary | 199.1K files |
.ny | linguist | secondary | 3.1K files |
.podsl | linguist | secondary | — |
.sexp | linguist | secondary | 35.4K files |
.cl | wikipedia | proposed | 498.5K files |
.fasl | wikipedia | proposed | 20.5K files |
.l | wikipedia | proposed | 770.6K files |
.lisp | wikipedia | proposed | 2.5M files |
.lsp | wikipedia | proposed | 199.1K files |
Related languages
LLM-contributed programs
Fibonacci Sequence
Provenance: commit fb89002e07 · authored 2026-03-11T18:07:52+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
/* Fibonacci sequence using CL (IBM i Control Language) */
PGM
DCL VAR(&N) TYPE(*DEC) LEN(5 0) VALUE(10)
DCL VAR(&A) TYPE(*DEC) LEN(15 0) VALUE(0)
DCL VAR(&B) TYPE(*DEC) LEN(15 0) VALUE(1)
DCL VAR(&C) TYPE(*DEC) LEN(15 0) VALUE(0)
DCL VAR(&I) TYPE(*DEC) LEN(5 0) VALUE(1)
DCL VAR(&MSG) TYPE(*CHAR) LEN(50)
SNDPGMMSG MSG('Fibonacci sequence:')
SNDPGMMSG MSG(%CHAR(&A))
LOOP:
IF COND(&I *GT &N) THEN(GOTO CMDLBL(DONE))
CHGVAR VAR(&C) VALUE(&A + &B)
CHGVAR VAR(&MSG) VALUE(%CHAR(&C))
SNDPGMMSG MSG(&MSG)
CHGVAR VAR(&A) VALUE(&B)
CHGVAR VAR(&B) VALUE(&C)
CHGVAR VAR(&I) VALUE(&I + 1)
GOTO CMDLBL(LOOP)
DONE:
ENDPGM
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.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.l/0 | .l | predicates | [{"kind": "any", "regexes": ["\\(def(un|macro)\\s"]}] |
h/linguist/.cl/0 | .cl | predicates | [{"kind": "any", "regexes": ["^\\s*\\((?i:defun|in-package|defpackage) "]}] |
h/linguist/.lsp/0 | .lsp | predicates | [{"kind": "any", "regexes": ["^\\s*\\((?i:defun|in-package|defpackage) "]}] |
h/linguist/.lisp/0 | .lisp | predicates | [{"kind": "any", "regexes": ["^\\s*\\((?i:defun|in-package|defpackage) "]}] |