Module Ocaml_parsing.Pprintast
Pretty-printers for Parsetree
Warning: this module is unstable and part of compiler-libs.
type space_formatter = (unit, Stdlib.Format.formatter, unit) Stdlib.formatval longident : Stdlib.Format.formatter -> Ocaml_parsing.Longident.t -> unitval constr : Stdlib.Format.formatter -> Ocaml_parsing.Longident.t -> unitval expression :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.expression ->
unitval string_of_expression : Ocaml_parsing.Parsetree.expression -> stringval pattern :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.pattern ->
unitval core_type :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.core_type ->
unitval signature :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.signature ->
unitval structure :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.structure ->
unitval string_of_structure : Ocaml_parsing.Parsetree.structure -> stringval module_expr :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.module_expr ->
unitval toplevel_phrase :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.toplevel_phrase ->
unitval top_phrase :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.toplevel_phrase ->
unitval class_field :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.class_field ->
unitval class_type_field :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.class_type_field ->
unitval class_expr :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.class_expr ->
unitval class_type :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.class_type ->
unitval module_type :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.module_type ->
unitval structure_item :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.structure_item ->
unitval signature_item :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.signature_item ->
unitval binding :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.value_binding ->
unitval payload :
Stdlib.Format.formatter ->
Ocaml_parsing.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 "_".
val case_list :
Stdlib.Format.formatter ->
Ocaml_parsing.Parsetree.case list ->
unitval ident_of_name : Stdlib.Format.formatter -> string -> unitval needs_parens :
kind:Ocaml_parsing.Pprintast.longindent_kind ->
string ->
boolmodule Doc : sig ... endFormat_doc functions for error messages