Sstt.Printermodule NodeId : sig ... endmodule type CustomNode = Printer.CustomNodetype builtin = | Empty| Any| AnyTuple| AnyEnum| AnyTag| AnyInt| AnyArrow| AnyRecord| AnyTupleComp of int| AnyTagComp of Tag.tand 'c op' = | Custom of 'c| Alias of string| Node of NodeId.t| Builtin of builtin| Var of Var.t| Enum of VDescr.Descr.Enums.Atom.t| Tag of Tag.t * 'c descr'| Interval of Z.t option * Z.t option| Record of (Label.t * 'c descr' * bool) list * bool| Varop of Prec.varop * 'c descr' list| Binop of Prec.binop * 'c descr' * 'c descr'| Unop of Prec.unop * 'c descr'type t = (module CustomNode) t'type descr = (module CustomNode) descr'type def = (module CustomNode) def'type op = (module CustomNode) op'module type PrinterExt = Printer.PrinterExttype aliases = (Ty.t * string) listtype extensions = (module PrinterExt) listval empty_params : paramsget aliases ty transforms the type ty into an algebraic form, recognizing type aliases aliases.
val print : Stdlib.Format.formatter -> t -> unitprint fmt t prints the algebraic form t using formatter fmt.
val print_descr : Stdlib.Format.formatter -> descr -> unitprint_descr fmt d prints the printer descriptor d using formatter fmt.
val print_descr_atomic : Stdlib.Format.formatter -> descr -> unitprint_descr_atomic fmt d prints the printer descriptor d in an atomic way (adding parentheses if necessary) using formatter fmt.
val print_descr_ctx :
int ->
Prec.assoc ->
Stdlib.Format.formatter ->
descr ->
unitprint_descr_ctx prec assoc fmt d prints the printer descriptor d in a context with precedence prec and associativity assoc, using formatter fmt.
print_ty aliases fmt ty prints the type ty using formatter fmt, recognizing type aliases aliases. Same as print fmt (get aliases ty).
print_subst aliases fmt s prints the substitution s using formatter fmt, recognizing type aliases aliases.
val print_ty' : Stdlib.Format.formatter -> Ty.t -> unitprint_ty' fmt ty prints the type ty using formatter fmt. Same as print_ty [] fmt ty.
val print_subst' : Stdlib.Format.formatter -> Subst.t -> unitprint_subst' fmt s prints the substitution s using formatter fmt. Same as print_subst [] fmt s.