Toplevel phrase parser for utop using camlp4.
Camlp4 toplevel phrase parser. Same as parse_toplevel_phrase but the result is not converted to an OCaml ast.
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.result.Error.
get_camlp4_error_message exn returns the location and error message for the exception exn as printed by camlp4.
get_camlp4_error_message exn
exn