| 1 |
|
| 2 |
type data = |
| 3 |
| Int of int |
| 4 |
| Ptr of int |
| 5 |
| Atm of int |
| 6 |
| Fun of int |
| 7 |
|
| 8 |
type obj = |
| 9 |
| Struct of int * data array ) |
| 10 |
| Int64 of Int64.t |
| 11 |
| Float64 of float |
| 12 |
| String of string |
| 13 |
|
| 14 |
module LargeArray : |
| 15 |
sig |
| 16 |
type 'a t |
| 17 |
val empty : 'a t |
| 18 |
val length : 'a t -> int |
| 19 |
val make : int -> 'a -> 'a t |
| 20 |
val get : 'a t -> int -> 'a |
| 21 |
val set : 'a t -> int -> 'a -> unit |
| 22 |
end |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
val parse_channel : in_channel -> (data * obj LargeArray.t) |
| 27 |
val parse_string : string -> (data * obj LargeArray.t) |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
module type Input = |
| 32 |
sig |
| 33 |
type t |
| 34 |
val input_byte : t -> int |
| 35 |
|
| 36 |
|
| 37 |
val input_binary_int : t -> int |
| 38 |
|
| 39 |
end |
| 40 |
|
| 41 |
|
| 42 |
module type S = |
| 43 |
sig |
| 44 |
type input |
| 45 |
val parse : input -> (data * obj LargeArray.t) |
| 46 |
|
| 47 |
|
| 48 |
end |
| 49 |
|
| 50 |
module Make (M : Input) : S with type input = M.t |
| 51 |
|
| 52 |
|
| 53 |
val instantiate : data * obj LargeArray.t -> Obj.t |
| 54 |
|