12 lines
519 B
OCaml
12 lines
519 B
OCaml
|
(* Description of primitive functions *)
|
||
|
|
||
|
type description =
|
||
|
{ prim_name: string; (* Name of primitive or C function *)
|
||
|
prim_arity: int; (* Number of arguments *)
|
||
|
prim_alloc: bool; (* Does it allocates or raise? *)
|
||
|
prim_native_name: string; (* Name of C function for the nat. code gen. *)
|
||
|
prim_native_float: bool } (* Does the above operate on unboxed floats? *)
|
||
|
|
||
|
val parse_declaration: int -> string list -> description option
|
||
|
val print_description: description -> unit
|