1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Caml Special Light *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
|
|
(* 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-02 11:55:37 -07:00
|
|
|
"-unsafe", Arg.Unit(fun () -> fast := true);
|
1995-05-04 03:15:53 -07:00
|
|
|
"-dlambda", Arg.Unit(fun () -> dump_lambda := true);
|
|
|
|
"-dinstr", Arg.Unit(fun () -> dump_instr := true)]
|
|
|
|
(fun name -> raise(Arg.Bad("don't know what to do with " ^ name)));
|
|
|
|
Toploop.loop()
|
|
|
|
|
|
|
|
let _ = Printexc.catch main ()
|