Ocaml_parsing.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 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 signature_items : Format.formatter -> Parsetree.signature_item list -> unitval binding : Format.formatter -> Parsetree.value_binding -> unitval payload : Format.formatter -> Parsetree.payload -> unitval class_signature : Format.formatter -> Parsetree.class_signature -> unitval type_declaration : Format.formatter -> Parsetree.type_declaration -> 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 "_".
val jkind_annotation : Format.formatter -> Parsetree.jkind_annotation -> unitval mode : Format.formatter -> Parsetree.mode Location.loc -> unitval case_list : Format.formatter -> Parsetree.case list -> unitval ident_of_name : Format.formatter -> string -> unit