Module Melange_compiler_libs.Pprintast

Pretty-printers for Parsetree

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

type space_formatter = Stdlib.format(unit, Stdlib.Format.formatter, unit);
let longident: Stdlib.Format.formatter => Longident.t => unit;
let expression: Stdlib.Format.formatter => Parsetree.expression => unit;
let string_of_expression: Parsetree.expression => string;
let pattern: Stdlib.Format.formatter => Parsetree.pattern => unit;
let core_type: Stdlib.Format.formatter => Parsetree.core_type => unit;
let signature: Stdlib.Format.formatter => Parsetree.signature => unit;
let structure: Stdlib.Format.formatter => Parsetree.structure => unit;
let string_of_structure: Parsetree.structure => string;
let module_expr: Stdlib.Format.formatter => Parsetree.module_expr => unit;
let toplevel_phrase: Stdlib.Format.formatter => Parsetree.toplevel_phrase => unit;
let top_phrase: Stdlib.Format.formatter => Parsetree.toplevel_phrase => unit;
let class_field: Stdlib.Format.formatter => Parsetree.class_field => unit;
let class_type_field: Stdlib.Format.formatter => Parsetree.class_type_field => unit;
let class_expr: Stdlib.Format.formatter => Parsetree.class_expr => unit;
let class_type: Stdlib.Format.formatter => Parsetree.class_type => unit;
let module_type: Stdlib.Format.formatter => Parsetree.module_type => unit;
let structure_item: Stdlib.Format.formatter => Parsetree.structure_item => unit;
let signature_item: Stdlib.Format.formatter => Parsetree.signature_item => unit;
let binding: Stdlib.Format.formatter => Parsetree.value_binding => unit;
let payload: Stdlib.Format.formatter => Parsetree.payload => unit;
let tyvar: Stdlib.Format.formatter => string => unit;

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