1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
open Clflags
|
|
|
|
|
1996-10-24 07:17:48 -07:00
|
|
|
let usage = "Usage: ocaml <options>\noptions are:"
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
let main () =
|
1996-10-24 07:17:48 -07:00
|
|
|
Arg.parse [
|
|
|
|
"-I", Arg.String(fun dir -> include_dirs := dir :: !include_dirs),
|
|
|
|
"<dir> Add <dir> to the list of include directories";
|
|
|
|
"-unsafe", Arg.Set fast, " No bound checking on array and string access";
|
|
|
|
"-drawlambda", Arg.Set dump_rawlambda, " (undocumented)";
|
|
|
|
"-dlambda", Arg.Set dump_lambda, " (undocumented)";
|
|
|
|
"-dinstr", Arg.Set dump_instr, " (undocumented)"
|
|
|
|
] (fun name -> raise(Arg.Bad("don't know what to do with " ^ name)))
|
|
|
|
usage;
|
1995-05-04 03:15:53 -07:00
|
|
|
Toploop.loop()
|
|
|
|
|
|
|
|
let _ = Printexc.catch main ()
|