This repository contains some example code and notes written for the book "Paradigms of Artificial Intelligence Programming Case Studies in Common Lisp".
brew install sbcl
rlwrap sbcl
rlwrap
is used so that the arrow keys can be interpreted correctly.
There are 2 ways to run a lisp file:
- Add shabang
#!/usr/bin/env sbcl --scrpit
andchmod +x <lisp-file-name>
sbcl --script <lisp-file-name>
rlwrap sbcl --load <lisp-file-name>
A testing framework (implemented in run-tests.lisp
) is developed for testing the example code in the book and the code for the exercises. There is a bash script run
in every chapter folder, which is a symbolic link to run.sh
.
To use the testing framework, type following commands:
cd <chapter-folder>
./run example
./run exercise
./run # run both example and exercise tests