Module Pprintast

module Pprintast: sig .. end

Pretty-printers for Parsetree

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


type space_formatter = format(unit, Format.formatter, unit);
let longident: (Format.formatter, Longident.t) => unit;
let expression: (Format.formatter, Parsetree.expression) => unit;
let string_of_expression: Parsetree.expression => string;
let pattern: (Format.formatter, Parsetree.pattern) => unit;
let core_type: (Format.formatter, Parsetree.core_type) => unit;
let signature: (Format.formatter, Parsetree.signature) => unit;
let structure: (Format.formatter, Parsetree.structure) => unit;
let string_of_structure: Parsetree.structure => string;
let toplevel_phrase: (Format.formatter, Parsetree.toplevel_phrase) => unit;
let top_phrase: (Format.formatter, Parsetree.toplevel_phrase) => unit;
let 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.