module Pp:Pretty printing.sig..end
The c-- README as follows: We want absolutely everyone to be able to use Quick C-- with confidence. To that end, the software is placed in the public domain. It is not protected by copyright, and it is not protected by a ``copyleft'' agreement like the one used by the Free Software Foundation.
The pretty printer provided by the Pp module is intended for tree-like
structures. Documents are represented by an abstract type t. A document
can be printed to a file or a string and during this process the pretty
printer decides about the final outcome of the document. The only parameter
it takes into account is the total line width and the number of characters a
sub-document occupies.
A document of type t can be very small entity like a single word.
Functions combine small documents to larger ones which then can be pretty
printed.
type t
val empty : tval ($) : t -> t -> tval text : string -> tval break : tval break_null : tval break_with : string -> tval nest : int -> t -> tval hgrp : t -> tval vgrp : t -> tval agrp : t -> tval fgrp : t -> tval to_string : t -> stringval to_file : Pervasives.out_channel -> t -> unitval to_string_width : int -> t -> stringval to_file_width : Pervasives.out_channel -> int -> t -> unitval list : sep:t -> f:('a -> t) -> 'a list -> tval commalist : f:('a -> t) -> 'a list -> tval ($/) : t -> t -> tval ($//) : t -> t -> tval block : ?indent:int -> f:('a -> t) -> 'a list -> tmodule Infix:sig..end