Questions tagged [clisp]

GNU CLISP is an UNIX/Windows implementation of ANSI Common Lisp with many extensions.

GNU CLISP is a Common Lisp implementation. It implements the language described in the ANSI Common Lisp standard with many extensions, and runs on most UNIXes and on Microsoft Windows. It has an interpreter, a compiler, a debugger, and implements most features expected of a modern Common Lisp, including CLOS, MOP, an FFI, Perl and Posix regexes, and others.

GNU CLISP is distributed under the GNU GPL, but its copyright file specifies that it can be used to compile proprietary applications.

457 questions
-2
votes
1 answer

I want to know what is wrong in my function please

I want to get all sublists that start with a number. So I did (defun function (list) (cond ((atom list) nil) ((and (numberq (car list)) (consp (car list))) (cons (function (car list)) (number (cdr list))) ) ((not (and (numberq…
-2
votes
1 answer

Calling a function whose arguments should be structure instances

Given the following code, what would by the syntax for calling the function dist? (defstruct coord x y) (defstruct line (point1 :type coord) (point2 :type coord) ) (defun dist (point1 point2) (sqrt (+ (square (- (coord-x point1)…
JaminB
  • 778
  • 3
  • 9
  • 20
-2
votes
1 answer

manipulating lists in common lisp

how does one create a list from a list,what function can i really use i was thinking of using mapcar or maplist with cons together but im not getting any fruitful results,lets say i have a list (a b) then i want a function that will create a list…
kintque
  • 9
  • 2
-3
votes
2 answers

How to simulate a symbol table in Common Lisp

i am learning Common LISP at the moment and i encountered a huge roadblock. I've had an assignment that we were to learn how to create a parser in Common LISP. I have managed to implement everything from the grammar rules to the lexer with alot of…
Joo223
  • 1
  • 1
-3
votes
1 answer

Hash Tables in clisp.Storing lists in hashtables

https://i.stack.imgur.com/zuh4U.jpg why is the hash table returning nil.Doesn't hashtables work for lists.
christoph
  • 132
  • 1
  • 3
  • 10
-4
votes
1 answer

Creating a method in Common Lisp

Hi I am doing a condition which I just want to call a method if the condition is true, the problem is I cannot find the syntax how to create a method in C-Lisp I am new with this language here's the code. /* I want to create a method here which i…
-5
votes
1 answer

Lisp - string concat

I am trying to concat strings in lisp, using clisp on linux. I run following code: (defun bingo () (strcat "Correct! You guessed " (itoa *count*) " times.")) but, get following error: EVAL: undefined function STRCAT EVAL: undefined function…
Eric
  • 22,183
  • 20
  • 145
  • 196
1 2 3
30
31