[   ^ to index...   |   <-- previous   |   next -->   ]

Handy SML/NJ how-tos

Run SML/NJ from the command prompt

This is, again, linked off the web page, but you should edit the file named .cshrc in your home directory (using Emacs, of course) so that it contains the following line:

    set path = (/cse/courses/misc_lang/linux/sml/bin/ $path)

Then, log out, log back in, and type sml at the command prompt. SML will come up in your xterm.

Load a file into SML/NJ

Type use "myfile.sml" within SML/NJ to load an existing file. Retyping long definitions is annoying, so this is highly recommended. But, it would be even nicer to...

Run SML/NJ within Emacs

There are two ways to do this:


Keunwoo Lee
Last modified: Wed Mar 28 22:00:21 PST 2001