PprintastPretty-printers for Parsetree
Warning: this module is unstable and part of compiler-libs.
type space_formatter = (unit, Format.formatter, unit) formatval longident : Format.formatter -> Longident.t -> unitval constr : Format.formatter -> Longident.t -> unitval expression : Format.formatter -> Parsetree.expression -> unitval string_of_expression : Parsetree.expression -> stringval pattern : Format.formatter -> Parsetree.pattern -> unitval core_type : Format.formatter -> Parsetree.core_type -> unitval signature : Format.formatter -> Parsetree.signature -> unitval structure : Format.formatter -> Parsetree.structure -> unitval string_of_structure : Parsetree.structure -> stringval module_expr : Format.formatter -> Parsetree.module_expr -> unitval toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unitval top_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unitval class_field : Format.formatter -> Parsetree.class_field -> unitval class_type_field : Format.formatter -> Parsetree.class_type_field -> unitval class_expr : Format.formatter -> Parsetree.class_expr -> unitval class_type : Format.formatter -> Parsetree.class_type -> unitval module_type : Format.formatter -> Parsetree.module_type -> unitval structure_item : Format.formatter -> Parsetree.structure_item -> unitval signature_item : Format.formatter -> Parsetree.signature_item -> unitval binding : Format.formatter -> Parsetree.value_binding -> unitval payload : Format.formatter -> Parsetree.payload -> unitTurn a type variable name into a valid identifier, taking care of the special treatment required for the single quote character in second position, or for keywords by escaping them with \#. No-op on "_".
val tyvar : Format.formatter -> string -> unitPrint a type variable name as a valid identifier, taking care of the special treatment required for the single quote character in second position, or for keywords by escaping them with \#. No-op on "_".
module Doc : sig ... endFormat_doc functions for error messages