HANDOUTS - CODE
CS 6371 - 001
FALL 1999
SCHEME
-
Scheme System
Here is a diskfull of files to install Scheme on
your PC. Download them all and follow instructions.
You may want to try the next file and see if
it works on your system, however.
-
scheme.exe
Here is a "self-extracting" file which one of the
students in CS4337 prepared and should install
Scheme on your system. I have not tried it.
-
Scheme
Here is additional Scheme information.
-
Scheme Code
Here is the "lispcode" file with lots of Scheme examples.
Note, in particular, how to do IO in Scheme.
-
Sethi Exercises Code
Here is the "sethi418.s" file with solutions to
Sethi's problems on page 418.
-
Scheme Homework Code
Here my solutions to
the Scheme homework problems.
Of course there are many ways to do the same thing.
HASKELL
-
Go to
http://www.haskell.org
for more than you want to know about the Haskell language!
There you can find compilers and tutorials.
-
user.hs
Here is the "user.hs" file.
-
BSTree.hs
Here is the "BSTree.hs" file.
The idea of a Binary Search Tree together
with some additional Haskell syntax is here.
PROLOG
-
SWI-Prolog
Here is a ZIP file containing a version of Prolog.
It runs under Windows (not DOS).
See below for the URL of a site with a newer version!
-
IO in PROLOG
Here is how to do input and output in PROLOG.
-
Sethi Prolog Code
Here is some Prolog code from Sethi.
Don't forget the IO code mentioned above.
-
AI "Learner" Program
Here is the AI program "learner.pl" as
demonstrated in class. The kb.pl file
is included as a comment.
-
A newer version of SWI-Prolog is available at:
http://www.swi.psy.uva.nl/projects/SWI-Prolog/