Toploopval getvalue : string -> Stdlib.Obj.tval setvalue : string -> Stdlib.Obj.t -> unitval filename_of_input : input -> stringval set_paths :
?auto_include:Load_path.auto_include_callback ->
?dir:string ->
unit ->
unitval loop : Stdlib.Format.formatter -> unitval run_script : Stdlib.Format.formatter -> input -> string array -> booltype directive_fun = | Directive_none of unit -> unit| Directive_string of string -> unit| Directive_int of int -> unit| Directive_ident of Longident.t -> unit| Directive_bool of bool -> unitval add_directive : string -> directive_fun -> directive_info -> unitval get_directive : string -> directive_fun optionval get_directive_info : string -> directive_info optionval directive_table : (string, directive_fun) Stdlib.Hashtbl.tval directive_info_table : (string, directive_info) Stdlib.Hashtbl.tval print_exception_outcome : Stdlib.Format.formatter -> exn -> unitval execute_phrase :
bool ->
Stdlib.Format.formatter ->
Parsetree.toplevel_phrase ->
boolval preprocess_phrase :
Stdlib.Format.formatter ->
Parsetree.toplevel_phrase ->
Parsetree.toplevel_phraseval use_input : Stdlib.Format.formatter -> input -> boolval use_output : Stdlib.Format.formatter -> string -> boolval use_silently : Stdlib.Format.formatter -> input -> boolval mod_use_input : Stdlib.Format.formatter -> input -> boolval use_file : Stdlib.Format.formatter -> string -> boolval eval_module_path : Env.t -> Path.t -> Stdlib.Obj.tval eval_value_path : Env.t -> Path.t -> Stdlib.Obj.tval eval_extension_path : Env.t -> Path.t -> Stdlib.Obj.tval eval_class_path : Env.t -> Path.t -> Stdlib.Obj.tval load_file : Stdlib.Format.formatter -> string -> boolval print_value :
Env.t ->
Stdlib.Obj.t ->
Stdlib.Format.formatter ->
Types.type_expr ->
unitval print_untyped_exception : Stdlib.Format.formatter -> Stdlib.Obj.t -> unitval install_printer :
Path.t ->
Types.type_expr ->
(Stdlib.Format.formatter -> Stdlib.Obj.t -> unit) ->
unitval install_generic_printer :
Path.t ->
Path.t ->
(int ->
(int ->
Stdlib.Obj.t ->
Outcometree.out_value,
Stdlib.Obj.t ->
Outcometree.out_value)
gen_printer) ->
unitval install_generic_printer' :
Path.t ->
Path.t ->
(Stdlib.Format.formatter ->
Stdlib.Obj.t ->
unit,
Stdlib.Format.formatter ->
Stdlib.Obj.t ->
unit)
gen_printer ->
unitval remove_printer : Path.t -> unitval max_printer_depth : int refval max_printer_steps : int refval parse_toplevel_phrase :
(Stdlib.Lexing.lexbuf -> Parsetree.toplevel_phrase) refval parse_use_file :
(Stdlib.Lexing.lexbuf -> Parsetree.toplevel_phrase list) refval print_location : Stdlib.Format.formatter -> Location.t -> unitval print_error : Stdlib.Format.formatter -> Location.error -> unitval print_warning : Location.t -> Stdlib.Format.formatter -> Warnings.t -> unitval input_name : string refval print_out_value :
(Stdlib.Format.formatter -> Outcometree.out_value -> unit) reftype 'a oprinter := 'a Oprint.printerval print_out_type : Outcometree.out_type oprinterval print_out_class_type : Outcometree.out_class_type oprinterval print_out_module_type : Outcometree.out_module_type oprinterval print_out_type_extension : Outcometree.out_type_extension oprinterval print_out_sig_item : Outcometree.out_sig_item oprinterval print_out_signature : Outcometree.out_sig_item list oprinterval print_out_phrase :
(Stdlib.Format.formatter -> Outcometree.out_phrase -> unit) refval read_interactive_input : (string -> bytes -> int -> int * bool) refval toplevel_startup_hook : (unit -> unit) refval add_hook : (event -> unit) -> unitval run_hooks : event -> unitval may_trace : bool refsplit_path path splits path according to the PATH-splitting conventions of the platform. On Unix, this is exactly String.split_on_char ':' path. On Windows, entries are separated by semicolons. Sections of entries may be double-quoted (which allows semicolons in filenames to be quoted). The double-quote characters are stripped (i.e. f"o"o = foo; also split_path "foo\";\";bar" = ["foo;"; "bar"])
val preload_objects : string list refList of compilation units to be loaded before entering the interactive loop.
val prepare : Stdlib.Format.formatter -> ?input:input -> unit -> boolSetup the load paths and initial toplevel environment and load compilation units in preload_objects.