HANDOUTS - CODE
CS 4337 - 001
SPRING 2000
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 of his book.
See the "announcements" for information about the
Scheme homework Spring 2000!
ML
-
Moscow ML
Here is "win32-mos14bin.zip" which is a zipped file
with a version of ML from Moscow. You may find
more recent ones on the web but I down-loaded this
on 2/9/00.
-
ML Examples
-
ML Homework
Assigned 29 February, due: March 20th.
-
ML Homework Answers
HASKELL
(Not used this semester)
-
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.
-
PROLOG Homework
Assigned 7 April, due: April 24th.
-
PROLOG Homework
These are answers (but not the only possible).
-
A newer version of SWI-Prolog is available at:
http://www.swi.psy.uva.nl/projects/SWI-Prolog/