summaryrefslogtreecommitdiff
path: root/lex/table.mli
blob: b88d7d345419f77e146e72ea71e342b90ef2fc7b (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
(***********************************************************************)
(*                                                                     *)
(*                           Objective Caml                            *)
(*                                                                     *)
(*            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 Q Public License version 1.0.               *)
(*                                                                     *)
(***********************************************************************)

(* 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