Pprintast(3)
π NAME π
okay bestie, welcome to the Pprintast(3) page from the OCaml library manual β manual name folded in right here so it doesn't get lonely π. The way that this is literally all about Pretty-printers for Parsetree? Obsessed. Periodt.
Pprintast β Pretty-printers for Parsetree.
π§ Module π§
Module: Pprintast.
β¨ Documentation β¨
Module Pprintast : sig end
Pretty-printers for Parsetree.
Warning: this module is unstable and part of Compiler_libs.
Here's the full lineup, exactly as it appears, ngl we do not lose receipts in this group chat π :
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 -> unitval tyvar_of_name : string -> stringβ Turn 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 -> unitβ Print 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 endβ Format_doc functions for error messages.
mwah π this iconic page was served by OCamldoc, dated 2026-06-22, and it's Pprintast(3) forever. bye bestie π«Άβ¨
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms