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 cs130w
[cs130w] -bash-2.05b$ ocaml

Objective Caml version 3.09 #

At the OCaml prompt: You can directly send the file foo.ml into OCaml and get the output piped to stdout by typing:
[cs130f] -bash-2.05b$ ocaml foo.ml