Skip to content

rixed/ocaml-pretty-printers-parsers

Repository files navigation

Pretty-Printers/Parsers

  > let pp = PPP.OCaml.(array (pair (list int) bool)) in
  > PPP.to_string pp [| ([1;2;3], true) ; ([], false) |]
    "[|([1;2;3],true);([],false)|]"
  > PPP.of_string pp "[|([1;2;3],true);([],false)|]"
    [| ([1;2;3], true) ; ([], false) |]