LISP: MIT Scheme
The lectures and the exercises will be based on the MIT Scheme implementation of LISP.
There are other implementations of Scheme (eg., PLT Scheme) which may have a more user-friendly interface.
However, remember that if your code runs in a Scheme other than MIT Scheme but not in MIT Scheme your solutions may be rejected.
A good choice is to use emacs to edit your code.
Installation and Running Scheme
You may run Scheme on your machine.
Read the installation instructions to install the distribution on your computer.
At the time of writing of this page the most recent version was 7.7.1. please use this version.
To use scheme on an NTNU server, type 'scheme'.
You may need to log in on erots.idi.ntnu.no, as other servers may run older scheme versions.
Documentation
You may find the following documentation useful:
Other manuals and postcript files.
Some more material on debugging in Scheme.
Coding
You may use emacs, a programmer's editor, or edwin (the editor included in the Windows MIT Scheme installation) to write your code.
You may find the PLT Scheme editor more intuitive, but due to some minor implementation differences you will need to make sure that your code runs in MIT Scheme only such code will be accepted.
To enter the code-coloring in emacs, type M-x scheme-mode, and M-x run-scheme to create a buffer for evaluation.
Loading the code
To load a code file into a scheme interpreter, type (load "your-file"), where 'your-file' is the name of the file without extension. Please read the user's manual for more details.
Applications
For some applications of LISP in real life, read the following examples.