Add copyright notices and new function String.chomp
[ocaml.git] / bytecomp / matching.mli
blobacbcd6ff8ed72b9a2de5d7acdbdf83504a5eba5b
1 (***********************************************************************)
2 (* *)
3 (* Objective Caml *)
4 (* *)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
10 (* *)
11 (***********************************************************************)
13 (* $Id$ *)
15 (* Compilation of pattern-matching *)
17 open Typedtree
18 open Lambda
20 val for_function:
21 Location.t -> int ref option -> lambda -> (pattern * lambda) list ->
22 partial -> lambda
23 val for_trywith:
24 lambda -> (pattern * lambda) list -> lambda
25 val for_let:
26 Location.t -> lambda -> pattern -> lambda -> lambda
27 val for_multiple_match:
28 Location.t -> lambda list -> (pattern * lambda) list -> partial ->
29 lambda
31 val for_tupled_function:
32 Location.t -> Ident.t list -> (pattern list * lambda) list ->
33 partial -> lambda
35 exception Cannot_flatten
37 val flatten_pattern: int -> pattern -> pattern list
39 val make_test_sequence:
40 lambda option -> primitive -> primitive -> lambda ->
41 (Asttypes.constant * lambda) list -> lambda