PprintastPretty-printers for Parsetree
Warning: this module is unstable and part of compiler-libs.
type space_formatter = (unit, Stdlib.Format.formatter, unit) formatval longident : Stdlib.Format.formatter -> Longident.t -> unitval constr : Stdlib.Format.formatter -> Longident.t -> unitval expression : Stdlib.Format.formatter -> Parsetree.expression -> unitval string_of_expression : Parsetree.expression -> stringval pattern : Stdlib.Format.formatter -> Parsetree.pattern -> unitval core_type : Stdlib.Format.formatter -> Parsetree.core_type -> unitval signature : Stdlib.Format.formatter -> Parsetree.signature -> unitval structure : Stdlib.Format.formatter -> Parsetree.structure -> unitval string_of_structure : Parsetree.structure -> stringval module_expr : Stdlib.Format.formatter -> Parsetree.module_expr -> unitval toplevel_phrase :
Stdlib.Format.formatter ->
Parsetree.toplevel_phrase ->
unitval top_phrase : Stdlib.Format.formatter -> Parsetree.toplevel_phrase -> unitval class_field : Stdlib.Format.formatter -> Parsetree.class_field -> unitval class_type_field :
Stdlib.Format.formatter ->
Parsetree.class_type_field ->
unitval class_expr : Stdlib.Format.formatter -> Parsetree.class_expr -> unitval class_type : Stdlib.Format.formatter -> Parsetree.class_type -> unitval module_type : Stdlib.Format.formatter -> Parsetree.module_type -> unitval structure_item :
Stdlib.Format.formatter ->
Parsetree.structure_item ->
unitval signature_item :
Stdlib.Format.formatter ->
Parsetree.signature_item ->
unitval binding : Stdlib.Format.formatter -> Parsetree.value_binding -> unitval payload : Stdlib.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 : Stdlib.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