You cannot post messages because only members can post, and you are not currently a member.
Description:
This forum is designed to help folks who have questions or run into issues working through the book "Land of Lisp" by Conrad Barski.
|
|
|
set-macro-character function
|
| |
Is it possible to write a set-macro-character function which takes the previous and the next characters as one of its arguments? I want to mimic the behavior of the '. character, which is a non terminating character when the characters right before and after it are digits (e.g. 12.34) and a terminating character otherwise (e.g. a.b).... more »
|
|
set-macro-character function
|
| |
Is it possible to write a set-macro-character function which takes the previous and the next characters as one of its arguments? I want to mimic the behavior of the '. character, which is a non terminating character when the characters right before and after it are digits (e.g. 12.34) and a terminating character otherwise (e.g. a.b).... more »
|
|
question about Chapter 4 Land of Lisp p.51
|
| |
Hello, I'm working my way through this wonderful book and I hope that someone can explain the function at the top of page 51 in more detail. I don't understand what is happening with this part: (1+ (my-length (cdr list))) 0)) How is this chomping off each bit until the list is empty? How do the 1+... more »
|
|
Neighbors (Chapter 15)
|
| |
I was having trouble understanding the code for neighbors on page 314, so I worked up an alternative implementation based on a columns and row view: (defun neighbors (pos) (let* ((s *board-size*) (r (truncate pos s)) (c (mod pos s)) (r+ (1+ r)) (r- (1- r)) (c+ (1+ c)) (c- (1- c)) (candidate-points (list (cons r- c-) (cons r- c)... more »
|
|
with-open-file
|
| |
Working through Chapter 12, I execute the example on page 242
(with-open-file (dada "ch12.txt") :direction :output
(print "chapter 12 is in and out" dada))
I get the following error
*** - OPEN: File #P"C:\\Program Files (x86)\\clisp-2.49\\ch12.txt"
does not
exist
And no file is written. Same thing happens if I type the text exactly... more »
|
|
Land of lisp and sbcl
|
| |
I just finished reading Land of Lisp, which I enjoyed a lot. I used sbcl to run the code, so I had to modify a few functions in order to get everything working. I want to report these changes, in case somebody is interested in using sbcl instead of clisp. First make sure that the libraries asdf and usocket are loaded.... more »
|
|
Issue with Chapter 6 Wizards Game
|
| |
This is seemingly identical to the source code from landoflisp.com for the wizards_game.lisp However, I continually get these errors when trying to input commands: [1]> (load "~/lisp/game.lisp") ...I figure there is something wrong with my *game-read *function. Cannot figure it out. Fairly frustrated.... more »
|
|
chapter 7 Land of lisp
|
| |
Hello all, I have been working on the book Land of Lisp and running
into some problems on chapter 7. After writing the following code:
(defparameter *wizard-nodes* '((living-room (you are in the
the living-room. a wizard is snoring loudly on the couch.))
(garden (you are in a beautiful garden. there is a well in front... more »
|
|
|