Merge commit 'ocaml3102'
[ocaml.git] / lex / table.mli
blobe5d55f965246f44e37c4bf0de0cc2e4e3ed8d20e
1 (***********************************************************************)
2 (* *)
3 (* Objective Caml *)
4 (* *)
5 (* Luc Maranget, projet Moscova, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 2002 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 (* Table used for code emission, ie extensible arrays *)
14 type 'a t
16 val create : 'a -> 'a t
18 val emit : 'a t -> 'a -> unit
20 val iter : 'a t -> ('a -> unit) -> unit
22 val trim : 'a t -> 'a array
25 exception Error
27 val get : 'a t -> int -> 'a
31 val size : 'a t -> int