CSE 130: How to run OCaml in the Lab machines

Here is a sample session. User input
is shown in red.

-bash-2.05b$prep cs130s
[cs130s] -bash-3.2b$ ocaml

Objective Caml version 3.11.0
#

At the OCaml prompt:

Enter #use "foo.ml"; to "load" the file foo.ml
. This has the same effect as typing out the file at the prompt,
but its usually more convenient to type and edit the file with Vim/Emacs
and load it in like this.
A more convenient option is the
OCaml-mode for Emacs.

Press "Ctrl-D" to exit OCaml.

You can directly send the file foo.ml
into OCaml and get the output piped to stdout by typing: