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
|
|
|
|
|
|
|
|
let main () =
|
|
|
|
Arg.parse
|
|
|
|
["-I", Arg.String(fun dir -> include_dirs := dir :: !include_dirs);
|
1995-09-05 05:30:26 -07:00
|
|
|
"-unsafe", Arg.Set fast;
|
1995-12-15 02:21:43 -08:00
|
|
|
"-drawlambda", Arg.Set dump_rawlambda;
|
1995-09-05 05:30:26 -07:00
|
|
|
"-dlambda", Arg.Set dump_lambda;
|
|
|
|
"-dinstr", Arg.Set dump_instr]
|
1995-05-04 03:15:53 -07:00
|
|
|
(fun name -> raise(Arg.Bad("don't know what to do with " ^ name)));
|
|
|
|
Toploop.loop()
|
|
|
|
|
|
|
|
let _ = Printexc.catch main ()
|