-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathast.mli
66 lines (66 loc) · 1.71 KB
/
ast.mli
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
exception ParseError of string
val parse_error : string -> 'a
type size = int
type alignment = int
type variadic_flag = Nonvariadic | Variadic
type encoding = Ascii | Utf8 | Utf16 | Utf32 | Ucs2
type datashape =
Void
| Bool
| Int8
| Int16
| Int32
| Int64
| Int128
| Uint8
| Uint16
| Uint32
| Uint64
| Uint128
| Float16
| Float32
| Float64
| Float128
| Complex of datashape
| Char of encoding
| String
| FixedString of size * encoding option
| Bytes of alignment
| FixedBytes of size * alignment
| Pointer of datashape
| Option of datashape
| CudaHost of datashape
| CudaDevice of datashape
| Constr of string * datashape
| Dtypevar of string
| ScalarKind
| CategoricalKind
| FixedBytesKind
| FixedStringKind
| Tuple of variadic_flag * datashape list
| Record of variadic_flag * field list
| Function of parameters
| FixedDim of size * datashape
| VarDim of datashape
| SymbolicDim of string * datashape
| EllipsisDim of string * datashape
| FixedDimKind of datashape
| AnyKind
and field = string * datashape
and parameters = {
fun_ret : datashape;
fun_pos : datashape;
fun_kwds : datashape;
}
val translate_alias : string -> datashape
val encoding_of_string : string -> encoding
val string_of_encoding : encoding -> string
val mk_fixed_power_dim :
size:size -> exponent:int -> datashape:datashape -> datashape
val mk_var_power_dim : exponent:int -> datashape:datashape -> datashape
val mk_symbolic_power_dim :
symbol:string -> exponent:int -> datashape:datashape -> datashape
val mk_bytes : alignment -> datashape
val mk_fixed_bytes : size:size -> align:size -> datashape
val mk_function :
pos:datashape -> kwds:datashape -> ret:datashape -> datashape