Source file ocamlformat_parser_shims.ml
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
67
68
69
70
include Ocamlformat_stdlib_shims
module Misc = Misc_
module Clflags : sig
val include_dirs : string list ref
val hidden_include_dirs : string list ref
val debug : bool ref
val unsafe : bool ref
val open_modules : string list ref
val absname : bool ref
val use_threads : bool ref
val principal : bool ref
val recursive_types : bool ref
val applicative_functors : bool ref
val for_package : string option ref
val transparent_modules : bool ref
val no_alias_deps: bool ref
val locations : bool ref
val color : Misc.Color.setting option ref
val error_style : Misc.Error_style.setting option ref
val unboxed_types : bool ref
val no_std_include : bool ref
end = struct
let include_dirs = ref ([] : string list)
let hidden_include_dirs = ref ([] : string list)
let debug = ref false
let unsafe = ref false
let absname = ref false
let use_threads = ref false
let open_modules = ref []
let principal = ref false
let recursive_types = ref false
let applicative_functors = ref true
let for_package = ref (None: string option)
let transparent_modules = ref false
let no_alias_deps = transparent_modules
let locations = ref true
let color = ref None
let error_style = ref None
let unboxed_types = ref false
let no_std_include = ref false
end
module Load_path = struct
type dir
type auto_include_callback =
(dir -> string -> string option) -> string -> string
type paths = {visible: string list; hidden: string list}
let get_paths () = {visible= []; hidden= []}
let init ~auto_include:_ ~visible:_ ~hidden:_ = ()
let auto_include_otherlibs _ _ s = s
end
module Builtin_attributes = struct
type current_phase = Parser | Invariant_check
let register_attr _ _ = ()
let mark_payload_attrs_used _ = ()
end
module Format_doc = Format_doc