/usr/lib/ocaml/utop/uTop_camlp4.mli is in libutop-ocaml-dev 1.19.3-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | (*
* uTop_camlp4.mli
* ---------------
* Copyright : (c) 2012, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of utop.
*)
val parse_toplevel_phrase : string -> bool -> Parsetree.toplevel_phrase UTop.result
(** Toplevel phrase parser for utop using camlp4. *)
val parse_toplevel_phrase_camlp4 : string -> bool -> Camlp4.PreCast.Ast.str_item UTop.result
(** Camlp4 toplevel phrase parser. Same as {!parse_toplevel_phrase}
but the result is not converted to an OCaml ast. *)
val convert_camlp4_toplevel_phrase : Camlp4.PreCast.Ast.str_item -> Parsetree.toplevel_phrase UTop.result
(** Converts a camlp4 toplevel phrase into a standard OCaml toplevel
phrase. Note that a camlp4 ast may not be convertible to an
OCaml one, in which case it returns {!UTop.Error}. *)
val get_camlp4_error_message : exn -> UTop.location * string
(** [get_camlp4_error_message exn] returns the location and error
message for the exception [exn] as printed by camlp4. *)
|