ISLISP
1 program
Added 2025-11-12T08:47:02Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit ce27bbe9e9 · authored 2025-11-12T09:47:02+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
4 sources · pl_id:
pl/islispWikipedia 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 · object-oriented · reflective · meta |
|---|---|
| Designed by | Many |
| Influenced by | Common Lisp · EuLisp · Le Lisp · Scheme |
| Implemented in | C · C# · Go · Java · JavaScript · Lisp |
Related languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Animal Guessing Game
Provenance: commit ce27bbe9e9 · authored 2025-11-12T09:47:02+01:00 · model google/gemini-2.5-pro · Temp 0.4
;;;
;;; animal.lsp
;;;
;;; Animal Guessing Game
;;;
;;;
;;; Copyright (C) 2006-2022 by T.Shido
;;;
(defclass <pair> ()
((key :accessor pair-key :initform nil)
(value :accessor pair-value :initform nil)))
(defun make-pair (key value)
(let ((p (create (class <pair>))))
(setf (pair-key p) key)
(setf (pair-value p) value)
p))
(defun yes-or-no ()
(let ((c (read-char)))
(while (and (not (char= c #\y))
(not (char= c #\n)))
(setq c (read-char)))
(char= c #\y)))
(defun ask (question)
(format (standard-output) "~A? (y/n) " question)
(finish-output (standard-output))
(yes-or-no))
(defun animal ()
(let ((root (make-pair "Is it a mammal"
(make-pair "Does it have stripes"
(make-pair "a tiger" nil)
(make-pair "a lion" nil))
(make-pair "Is it a bird"
(make-pair "a penguin" nil)
(make-pair "a snake" nil)))))
(while t
(format (standard-output) "Think of an animal.~%")
(let ((node root))
(while (pair-value node)
(if (ask (pair-key node))
(setq node (pair-key (pair-value node)))
(setq node (pair-value (pair-value node)))))
(if (ask (format-to-string "Is it ~A" (pair-key node)))
(format (standard-output) "I knew it!~%")
(progn
(format (standard-output) "What is it? ")
(let ((new-animal (read-line)))
(format (standard-output) "What is a question to distinguish ~A from ~A? "
new-animal (pair-key node))
(let ((new-question (read-line)))
(format (standard-output) "For ~A, what is the answer to the question? (y/n) "
new-animal)
(if (yes-or-no)
(setf (pair-value node)
(make-pair (make-pair new-animal nil)
(make-pair (pair-key node) nil)))
(setf (pair-value node)
(make-pair (make-pair (pair-key node) nil)
(make-pair new-animal nil))))
(setf (pair-key node) new-question)))))))))