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/islisp
LLM (this repo) · 1PldbWikipediaWikidata · Q5974027

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · procedural · object-oriented · reflective · meta
Designed byMany
Influenced byCommon Lisp · EuLisp · Le Lisp · Scheme
Implemented inC · C# · Go · Java · JavaScript · Lisp

Related languages

Lisp (0.36)uLisp (0.36)EuLisp (0.33)GDLisp (0.33)HLisp (0.33)

LLM-contributed programs

Animal Guessing Game

Provenance: commit ce27bbe9e9 · authored 2025-11-12T09:47:02+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.lisp · added: 2025-11-12T08:47:02Z
;;;
;;; 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)))))))))

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 ISLISP (mapped to pl/islisp). 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/ISLISP/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ISLE iso-8601 →