package rope

  1. Overview
  2. Docs
Ropes (heavyweight strings)

Install

Dune Dependency

Authors

Maintainers

Sources

rope-0.6.3.tbz
sha256=335e1f88ff410e2cf7584a0ca8026a65a5e4e0fa19f19d588ce93e17def3d396
sha512=01b089920716dc0e8182fb746bc604f4315f79f5e8c448924000e7eb8c278f71d99e1736a422b0a3f293b01ee312b8b3176493583883c781d446f433c1557ea5

doc/src/rope.top/rope_top.ml.html

Source file rope_top.ml

1
2
3
4
5
6
7
8
9
10
11
12
13

let eval_string ?(print_outcome = false)
      ?(err_formatter = Format.err_formatter) str =
  let lexbuf = Lexing.from_string str in
  let phrase = !Toploop.parse_toplevel_phrase lexbuf in
  Toploop.execute_phrase print_outcome err_formatter phrase

let install_printer p =
  eval_string (Printf.sprintf "#install_printer %s;;" p)

let () =
  if not (install_printer "Rope.Rope_toploop.printer") then
    Format.eprintf "Problem installing Rope-printer@."
OCaml

Innovation. Community. Security.