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
|
|
|
(* Compilation of pattern-matching *)
|
|
|
|
|
|
|
|
open Typedtree
|
|
|
|
open Lambda
|
|
|
|
|
|
|
|
val for_function:
|
1997-03-27 12:53:30 -08:00
|
|
|
Location.t -> int ref option -> lambda -> (pattern * lambda) list ->
|
|
|
|
lambda
|
1995-05-04 03:15:53 -07:00
|
|
|
val for_trywith:
|
1995-12-15 02:18:29 -08:00
|
|
|
lambda -> (pattern * lambda) list -> lambda
|
1995-05-04 03:15:53 -07:00
|
|
|
val for_let:
|
1995-12-15 02:18:29 -08:00
|
|
|
Location.t -> lambda -> pattern -> lambda -> lambda
|
|
|
|
val for_multiple_match:
|
|
|
|
Location.t -> lambda list -> (pattern * lambda) list -> lambda
|
1996-10-22 06:36:59 -07:00
|
|
|
val for_tupled_function:
|
|
|
|
Location.t -> Ident.t list -> (pattern list * lambda) list -> lambda
|
|
|
|
|
|
|
|
exception Cannot_flatten
|
|
|
|
|
|
|
|
val flatten_pattern: int -> pattern -> pattern list
|