Module Ocaml_parsing.PprintastSource

Pretty-printers for Parsetree

Warning: this module is unstable and part of compiler-libs.

Sourcetype space_formatter = (unit, Format.formatter, unit) format
Sourceval longident : Format.formatter -> Longident.t -> unit
Sourceval expression : Format.formatter -> Parsetree.expression -> unit
Sourceval string_of_expression : Parsetree.expression -> string
Sourceval pattern : Format.formatter -> Parsetree.pattern -> unit
Sourceval core_type : Format.formatter -> Parsetree.core_type -> unit
Sourceval signature : Format.formatter -> Parsetree.signature -> unit
Sourceval structure : Format.formatter -> Parsetree.structure -> unit
Sourceval string_of_structure : Parsetree.structure -> string
Sourceval module_expr : Format.formatter -> Parsetree.module_expr -> unit
Sourceval toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
Sourceval class_field : Format.formatter -> Parsetree.class_field -> unit
Sourceval class_type_field : Format.formatter -> Parsetree.class_type_field -> unit
Sourceval class_expr : Format.formatter -> Parsetree.class_expr -> unit
Sourceval class_type : Format.formatter -> Parsetree.class_type -> unit
Sourceval module_type : Format.formatter -> Parsetree.module_type -> unit
Sourceval structure_item : Format.formatter -> Parsetree.structure_item -> unit
Sourceval signature_item : Format.formatter -> Parsetree.signature_item -> unit
Sourceval payload : Format.formatter -> Parsetree.payload -> unit
Sourceval tyvar : Format.formatter -> string -> unit

Print a type variable name, taking care of the special treatment required for the single quote character in second position.

Sourceval case_list : Format.formatter -> Parsetree.case list -> unit
Sourceval protect_ident : Format.formatter -> string -> unit
Sourceval needs_parens : string -> bool