<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="serif">I was asked the other day about how I broke
apart my LISP code into separate source files. I general it is
recommended to use ASDF (Another System Definition Facility)
which is really the standard for doing this in lisp -- but that
is overkill here. I don't have a separate exercise on ASDF set
up on CANVAS, but I know some of you are interested in getting
LISP done and just want to break up your code. Here is how I
did that without having to do all of the ASDF stuff...<br>
</font></p>
<p><font face="serif">I have one file (in this case called
fivecardstud.lisp) that contains the following:<br>
</font></p>
<p><font face="monospace">(load "card.lisp")<br>
(load "util-functions.lisp")<br>
(load "main-functions.lisp")<br>
(load "hand-functions.lisp")<br>
(load "tablescore.lisp")<br>
(load "main.lisp")<br>
</font></p>
<p>To run my program I then type "sbcl --script fivecardstud.lisp"<font
face="monospace"><br>
</font></p>
<p>You could, alternatively, include the #!/usr2/... stuff at the
top and make just fivecardstud.lisp executable to run it with just
the name of the program.<br>
</p>
<div class="moz-signature">-- <br>
<b><i>Andrew J. Pounds, Ph.D.</i></b><br>
<i>Professor of Chemistry and Computer Science</i><br>
<i>Director of the Computational Science Program</i><br>
<i>Mercer University, Macon, GA 31207 (478) 301-5627</i></div>
</body>
</html>