Directions for using ML (spring 95)
Make sure your path is set right
Make sure /user2/C341/c341/bin is in your path (you should
have done this for the LISP part of the course).
SML in the Unix shell
The easiest way to start the interprete now is to type sml
at the unix prompt when you log in.
-
The interpreter should start up,
and a - prompt should appear.
-
To quit, type ctrl-d.
SML in emacs
The only problem with the above problem is that saving a transcript of
your solution. When you want to save a transcript, you can start sml
in emacs as follows:
- Start emacs (type emacs at the unix prompt)
- Inside emacs, type: Alt-x shell ; this should pop up
a unix prompt in emacs.
- Type sml at the unix prompt in emacs. The
interpreter should now start up and pop up the - prompt
in emacs.
- Do your stuff.
- To save your stuff, type ctrl-x ctrl-s in emacs.
It'll prompt you for the name of the file you want to save the
transcript in.
-
To quit sml, type ctrl-c ctrl-d
-
To quit the shell in emacs, type exit at the unix prompt
in emacs.
-
To quit emacs, type ctrl-x ctrl-c