LISP 1.5

1 program Added 2026-02-10T19:55:34Z Agent: claude-codeModel: sonnetWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit cecf258c22 · authored 2026-02-10T20:56:45+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/lisp-1-5
LLM (this repo) · 1Pldb

Related languages

Lisp (0.42)LISP 1 (0.38)LISP 2 (0.29)Lispkit Lisp (0.29)LispMe (0.29)

LLM-contributed programs

Universal LISP Function

Provenance: commit cecf258c22 · authored 2026-02-10T20:56:45+01:00 · agent claude-code · model sonnet · WebSearch enabled
code.lisp · added: 2026-02-10T19:55:34Z
null[x] = [eq[x;NIL] -> T; T -> F]
caar[x] = car[car[x]]
cadr[x] = car[cdr[x]]
cdar[x] = cdr[car[x]]
caddr[x] = cadr[cdr[x]]
cadar[x] = cadr[car[x]]

equal[x;y] = [atom[x] -> [atom[y] -> eq[x;y]; T -> F];
   equal[car[x]; car[y]] -> equal[cdr[x]; cdr[y]]; T -> F]

subst[x;y;z] = [equal[y;z] -> x; atom[z] -> z;
   T -> cons[subst[x;y;car[z]];subst[x;y;cdr[z]]]]

append[x;y] = [null[x] -> y; T -> cons[car[x];append[cdr[x];y]]]

pairlis[x;y;a] = [null[x] -> a;
   T -> cons[cons[car[x];car[y]]; pairlis[cdr[x];cdr[y];a]]]

assoc[x;a] = [equal[caar[a];x] -> car[a]; T -> assoc[x;cdr[a]]]

apply[fn;x;a] = [atom[fn] -> [eq[fn;CAR] -> caar[x]; eq[fn;CDR] -> cdar[x];
   eq[fn;CONS] -> cons[car[x];cadr[x]]; eq[fn;ATOM] -> atom[car[x]];
   eq[fn;EQ] -> eq[car[x];cadr[x]]; T -> apply[eval[fn;a];x;a]];
   eq[car[fn];LAMBDA] -> eval[caddr[fn];pairlis[cadr[fn];x;a]];
   eq[car[fn];LABEL] -> apply[caddr[fn];x;cons[cons[cadr[fn];caddr[fn]];a]]]

eval[e;a] = [atom[e] -> cdr[assoc[e;a]]; atom[car[e]] ->
   [eq[car[e];QUOTE] -> cadr[e]; eq[car[e];COND] -> evcon[cdr[e];a];
   T -> apply[car[e];evlis[cdr[e];a];a]]; T -> apply[car[e];evlis[cdr[e];a];a]]

evcon[c;a] = [eval[caar[c];a] -> eval[cadar[c];a]; T -> evcon[cdr[c];a]]

evlis[m;a] = [null[m] -> NIL; T -> cons[eval[car[m];a];evlis[cdr[m];a]]]

evalquote[fn;args] = apply[fn;args;NIL]

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 LISP 1.5 (mapped to pl/lisp-1-5). 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/LISP 1.5/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← LISP 1 LISP 2 →