summaryrefslogtreecommitdiff
path: root/lex/table.mli
blob: 492626b9e6c506310bd7cb3078211544ca787e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(**************************************************************************)
(*                                                                        *)
(*                                 OCaml                                  *)
(*                                                                        *)
(*             Luc Maranget, projet Moscova, INRIA Rocquencourt           *)
(*                                                                        *)
(*   Copyright 2002 Institut National de Recherche en Informatique et     *)
(*     en Automatique.                                                    *)
(*                                                                        *)
(*   All rights reserved.  This file is distributed under the terms of    *)
(*   the GNU Lesser General Public License version 2.1, with the          *)
(*   special exception on linking described in the file LICENSE.          *)
(*                                                                        *)
(**************************************************************************)

(* Table used for code emission, ie extensible arrays *)
type 'a t

val create : 'a -> 'a t

val emit : 'a t -> 'a -> unit

val iter : 'a t -> ('a -> unit) -> unit

val trim : 'a t -> 'a array


exception Error

val get : 'a t -> int -> 'a



val size : 'a t -> int