Software for CSE 340


Note: if you have trouble with any of the software on this page, send mail to me immediately. Remember, we'll have a lab session on Thursday, Jan 15 in the Towne PC lab, for questions about O'Caml installation.

Writing O'Caml programs

I strongly suggest that you use Emacs to edit your programs for this course. Emacs is a highly configurable editor, and you may set it so that it will assist you in developing ML programs that match the style guide. Emacs is installed on the lab machines and part of many standard distributions of Linux. If you would like to install a windows version of Emacs, I suggest the native version of XEmacs.

Testing Tuareg Emacs mode:

  1. Start emacs.
  2. Save the file called nucleic.ml to your machine and load it with Emacs.
  3. Ensure that the status line at the bottom of the screen says "Tuareg Font"
  4. Ensure that keywords are colored. The comments at the beginning of the file should be a different color.
  5. Add spaces to the begining of a line with code, and ensure that TAB returns it to the correct place.

Installing O'Caml

O'Caml is installed on both the windows and linux machines in the labs. You may also download and install it on your own computer.

Compiling and Running O'Caml programs

There are two ways to run O'Caml from within Emacs/XEmacs.

  1. Toplevel - C-c C-s or Menu: Tuareg -> Interactive Mode -> Run Caml Toplevel
  2. Batch Compilation (This is what you will use most often.)

01/12/2004 4:10 PM