-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathocamliutil.mli
57 lines (33 loc) · 994 Bytes
/
ocamliutil.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
exception RuntimeTypeError of string
(* For writing evalutors with *)
val setify : 'a list -> 'a list
type 'a result =
Next of 'a
| IsValue
| Malformed of string
| Unimplemented of string
val typecheck : bool ref
exception ExnUnimplemented of string
exception ExnMalformed of string
type last_op =
Arith
| Boolean
| Comparison
| IfBool
| InsidePervasive
| VarLookup
val unimp : string -> 'a
val malformed : string -> 'a
val ast_to_string : Parsetree.expression -> string
val with_desc : Parsetree.expression_desc -> Parsetree.expression
val isstarred : string -> bool
val star : string -> string
val unstar : string -> string
val option_map : ('a -> 'b option) -> 'a list -> 'b list
val load_file : string -> string
val env : Env.t
val ast : ?filename:string -> string -> Parsetree.structure
val filename_of_modname : string -> string
val modname_of_filename : string -> string
val explode : string -> char list
val implode : char list -> string