How to start using MIT Scheme
The following is a short description. Please
find the official page on using MIT Scheme
In order to run the Scheme interpreter on csa, type:
in the command prompt.
Scheme's command prompt looks like this:
although the number can change as you use the interpreter.
Once you get the prompt, you can type any Scheme commands that you want.
If you get stuck, pressing ^G (control + G) in most cases gets you back to
the original '1 ]=>' prompt where you can resume normal work. For example,
if you get an error (try typing 'foo' without the quotes in the Scheme
interpreter; you should get the 'unbound variable' error), the prompt
For now, just consider that that prompt is no good :) Press ^G and you
should again see:
Now you can try to correct the error.
If you use a text editor to type your scheme programs, you can, of course,
load them into the scheme interpreter. Suppose that your program is called
'foo.scm' (w/o the quotes). One way to load it into scheme is to supply it
as a command line argument to the interpreter, i.e. in the UNIX command
scheme -load foo.scm
Another way is to type
in scheme interpreter (not in UNIX prompt!). This way has a slight benefit
that it prints out the value of the last expression evaluated.
When you are done using scheme, you can exit by typing
in the interpreter. You can also exit by typing
^Cq (control+c followed by q). Watch out! Exiting erases all changes you
might have typed in the interpreter.