Debian Codegraph @

src/shape.ml

raw symbols SCIP
1 include Bin_shape
2
3 (* new base shapes *)
4 let bin_shape_unit = basetype (Uuid.of_string "unit") []
5 let bin_shape_bool = basetype (Uuid.of_string "bool") []
6 let bin_shape_string = basetype (Uuid.of_string "string") []
7 let bin_shape_bytes = basetype (Uuid.of_string "bytes") []
8 let bin_shape_char = basetype (Uuid.of_string "char") []
9 let bin_shape_float = basetype (Uuid.of_string "float") []
10 let bin_shape_int = basetype (Uuid.of_string "int") []
11 let bin_shape_int32 = basetype (Uuid.of_string "int32") []
12 let bin_shape_int63 = basetype (Uuid.of_string "int63") []
13 let bin_shape_int64 = basetype (Uuid.of_string "int64") []
14 let bin_shape_nativeint = basetype (Uuid.of_string "nativeint") []
15 let bin_shape_nat0 = basetype (Uuid.of_string "nat0") []
16 let bin_shape_digest = basetype (Uuid.of_string "digest") []
17 let bin_shape_float32_vec = basetype (Uuid.of_string "float32_vec") []
18 let bin_shape_float64_vec = basetype (Uuid.of_string "float64_vec") []
19 let bin_shape_vec = basetype (Uuid.of_string "vec") []
20 let bin_shape_float32_mat = basetype (Uuid.of_string "float32_mat") []
21 let bin_shape_float64_mat = basetype (Uuid.of_string "float64_mat") []
22 let bin_shape_mat = basetype (Uuid.of_string "mat") []
23 let bin_shape_bigstring = basetype (Uuid.of_string "bigstring") []
24 let bin_shape_floatarray = basetype (Uuid.of_string "floatarray") []
25 let bin_shape_variant_int = basetype (Uuid.of_string "variant_int") []
26 let bin_shape_int_8bit = basetype (Uuid.of_string "int_8bit") []
27 let bin_shape_int_16bit = basetype (Uuid.of_string "int_16bit") []
28 let bin_shape_int_32bit = basetype (Uuid.of_string "int_32bit") []
29 let bin_shape_int_64bit = basetype (Uuid.of_string "int_64bit") []
30 let bin_shape_int64_bits = basetype (Uuid.of_string "int64_bits") []
31 let bin_shape_network16_int = basetype (Uuid.of_string "network16_int") []
32 let bin_shape_network32_int = basetype (Uuid.of_string "network32_int") []
33 let bin_shape_network32_int32 = basetype (Uuid.of_string "network32_int32") []
34 let bin_shape_network64_int = basetype (Uuid.of_string "network64_int") []
35 let bin_shape_network64_int64 = basetype (Uuid.of_string "network64_int64") []
36
37 (* new shape constructors *)
38 let bin_shape_ref x = basetype (Uuid.of_string "ref") [ x ]
39 let bin_shape_option x = basetype (Uuid.of_string "option") [ x ]
40 let bin_shape_list x = basetype (Uuid.of_string "list") [ x ]
41 let bin_shape_array x = basetype (Uuid.of_string "array") [ x ]
42 let bin_shape_hashtbl x y = basetype (Uuid.of_string "hashtbl") [ x; y ]
43
44 (* shape-constructor aliases *)
45 let bin_shape_lazy x = x
46 let bin_shape_pair x y = tuple [ x; y ]
47 let bin_shape_triple x y z = tuple [ x; y; z ]