---
name: "Pprintast.printer"
section: "3o"
platform: "linux"
package: "ocaml-compiler-libs"
version: "4.02.3-9"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Pprintast.printer"
---

# Pprintast.printer(3o)

no description

## NAME

Pprintast.printer - no description

## Class

Class   Pprintast.printer

## Documentation

*class printer :* **unit -\> object end**

**Parameters:**

""

**unit**

*val pipe :* **bool**

*val semi :* **bool**

*method binding :* **Format.formatter -\> Parsetree.value\_binding -\> unit**

*method bindings :* **Format.formatter -\> Asttypes.rec\_flag \* Parsetree.value\_binding list -\> unit**

*method case\_list :* **Format.formatter -\> Parsetree.case list -\> unit**

*method class\_expr :* **Format.formatter -\> Parsetree.class\_expr -\> unit**

*method class\_field :* **Format.formatter -\> Parsetree.class\_field -\> unit**

*method class\_params\_def :* **Format.formatter -\> (Parsetree.core\_type \* Asttypes.variance) list -\> unit**

*method class\_signature :* **Format.formatter -\> Parsetree.class\_signature -\> unit**

*method class\_structure :* **Format.formatter -\> Parsetree.class\_structure -\> unit**

*method class\_type :* **Format.formatter -\> Parsetree.class\_type -\> unit**

*method class\_type\_declaration\_list :* **Format.formatter -\> Parsetree.class\_type\_declaration list -\> unit**

*method constant :* **Format.formatter -\> Asttypes.constant -\> unit**

*method constant\_string :* **Format.formatter -\> string -\> unit**

*method core\_type :* **Format.formatter -\> Parsetree.core\_type -\> unit**

*method core\_type1 :* **Format.formatter -\> Parsetree.core\_type -\> unit**

*method direction\_flag :* **Format.formatter -\> Asttypes.direction\_flag -\> unit**

*method directive\_argument :* **Format.formatter -\> Parsetree.directive\_argument -\> unit**

*method exception\_declaration :* **Format.formatter -\> Parsetree.extension\_constructor -\> unit**

*method expression :* **Format.formatter -\> Parsetree.expression -\> unit**

*method expression1 :* **Format.formatter -\> Parsetree.expression -\> unit**

*method expression2 :* **Format.formatter -\> Parsetree.expression -\> unit**

*method extension\_constructor :* **Format.formatter -\> Parsetree.extension\_constructor -\> unit**

*method label\_exp :* **Format.formatter -\>** **Asttypes.label \* Parsetree.expression option \* Parsetree.pattern -\> unit**

*method label\_x\_expression\_param :* **Format.formatter -\> Asttypes.label \* Parsetree.expression -\> unit**

*method list :* **'a.** **?sep:Pprintast.space\_formatter -\>** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **(Format.formatter -\> 'a -\> unit) -\> Format.formatter -\> 'a list -\> unit**

*method longident :* **Format.formatter -\> Longident.t -\> unit**

*method longident\_loc :* **Format.formatter -\> Longident.t Asttypes.loc -\> unit**

*method module\_expr :* **Format.formatter -\> Parsetree.module\_expr -\> unit**

*method module\_type :* **Format.formatter -\> Parsetree.module\_type -\> unit**

*method mutable\_flag :* **Format.formatter -\> Asttypes.mutable\_flag -\> unit**

*method option :* **'a.** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **(Format.formatter -\> 'a -\> unit) -\> Format.formatter -\> 'a option -\> unit**

*method paren :* **'a.** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **bool -\> (Format.formatter -\> 'a -\> unit) -\> Format.formatter -\> 'a -\> unit**

*method pattern :* **Format.formatter -\> Parsetree.pattern -\> unit**

*method pattern1 :* **Format.formatter -\> Parsetree.pattern -\> unit**

*method payload :* **Format.formatter -\> Parsetree.payload -\> unit**

*method private\_flag :* **Format.formatter -\> Asttypes.private\_flag -\> unit**

*method rec\_flag :* **Format.formatter -\> Asttypes.rec\_flag -\> unit**

*method nonrec\_flag :* **Format.formatter -\> Asttypes.rec\_flag -\> unit**

*method reset :* **\< attribute : Format.formatter -\> Parsetree.attribute -\> unit;** **attributes : Format.formatter -\> Parsetree.attributes -\> unit;** **binding : Format.formatter -\> Parsetree.value\_binding -\> unit;** **bindings : Format.formatter -\>** **Asttypes.rec\_flag \* Parsetree.value\_binding list -\> unit;** **case\_list : Format.formatter -\> Parsetree.case list -\> unit;** **class\_expr : Format.formatter -\> Parsetree.class\_expr -\> unit;** **class\_field : Format.formatter -\> Parsetree.class\_field -\> unit;** **class\_params\_def : Format.formatter -\>** **(Parsetree.core\_type \* Asttypes.variance) list -\> unit;** **class\_signature : Format.formatter -\> Parsetree.class\_signature -\> unit;** **class\_structure : Format.formatter -\> Parsetree.class\_structure -\> unit;** **class\_type : Format.formatter -\> Parsetree.class\_type -\> unit;** **class\_type\_declaration\_list : Format.formatter -\>** **Parsetree.class\_type\_declaration list -\> unit;** **constant : Format.formatter -\> Asttypes.constant -\> unit;** **constant\_string : Format.formatter -\> string -\> unit;** **core\_type : Format.formatter -\> Parsetree.core\_type -\> unit;** **core\_type1 : Format.formatter -\> Parsetree.core\_type -\> unit;** **direction\_flag : Format.formatter -\> Asttypes.direction\_flag -\> unit;** **directive\_argument : Format.formatter -\>** **Parsetree.directive\_argument -\> unit;** **exception\_declaration : Format.formatter -\>** **Parsetree.extension\_constructor -\> unit;** **expression : Format.formatter -\> Parsetree.expression -\> unit;** **expression1 : Format.formatter -\> Parsetree.expression -\> unit;** **expression2 : Format.formatter -\> Parsetree.expression -\> unit;** **extension : Format.formatter -\> Parsetree.extension -\> unit;** **extension\_constructor : Format.formatter -\>** **Parsetree.extension\_constructor -\> unit;** **floating\_attribute : Format.formatter -\> Parsetree.attribute -\> unit;** **item\_attribute : Format.formatter -\> Parsetree.attribute -\> unit;** **item\_attributes : Format.formatter -\> Parsetree.attributes -\> unit;** **item\_extension : Format.formatter -\> Parsetree.extension -\> unit;** **label\_exp : Format.formatter -\>** **Asttypes.label \* Parsetree.expression option \*** **Parsetree.pattern -\> unit;** **label\_x\_expression\_param : Format.formatter -\>** **Asttypes.label \* Parsetree.expression -\> unit;** **list : 'a.** **?sep:Pprintast.space\_formatter -\>** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **(Format.formatter -\> 'a -\> unit) -\>** **Format.formatter -\> 'a list -\> unit;** **longident : Format.formatter -\> Longident.t -\> unit;** **longident\_loc : Format.formatter -\> Longident.t Asttypes.loc -\> unit;** **module\_expr : Format.formatter -\> Parsetree.module\_expr -\> unit;** **module\_type : Format.formatter -\> Parsetree.module\_type -\> unit;** **mutable\_flag : Format.formatter -\> Asttypes.mutable\_flag -\> unit;** **nonrec\_flag : Format.formatter -\> Asttypes.rec\_flag -\> unit;** **option : 'a.** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **(Format.formatter -\> 'a -\> unit) -\>** **Format.formatter -\> 'a option -\> unit;** **paren : 'a.** **?first:Pprintast.space\_formatter -\>** **?last:Pprintast.space\_formatter -\>** **bool -\>** **(Format.formatter -\> 'a -\> unit) -\>** **Format.formatter -\> 'a -\> unit;** **pattern : Format.formatter -\> Parsetree.pattern -\> unit;** **pattern1 : Format.formatter -\> Parsetree.pattern -\> unit;** **payload : Format.formatter -\> Parsetree.payload -\> unit;** **private\_flag : Format.formatter -\> Asttypes.private\_flag -\> unit;** **rec\_flag : Format.formatter -\> Asttypes.rec\_flag -\> unit; reset : 'b;** **reset\_ifthenelse : 'b; reset\_pipe : 'b; reset\_semi : 'b;** **signature : Format.formatter -\> Parsetree.signature\_item list -\> unit;** **signature\_item : Format.formatter -\> Parsetree.signature\_item -\> unit;** **simple\_expr : Format.formatter -\> Parsetree.expression -\> unit;** **simple\_pattern : Format.formatter -\> Parsetree.pattern -\> unit;** **string\_quot : Format.formatter -\> Asttypes.label -\> unit;** **structure : Format.formatter -\> Parsetree.structure\_item list -\> unit;** **structure\_item : Format.formatter -\> Parsetree.structure\_item -\> unit;** **sugar\_expr : Format.formatter -\> Parsetree.expression -\> bool;** **toplevel\_phrase : Format.formatter -\> Parsetree.toplevel\_phrase -\> unit;** **type\_declaration : Format.formatter -\> Parsetree.type\_declaration -\> unit;** **type\_def\_list : Format.formatter -\> Parsetree.type\_declaration list -\> unit;** **type\_extension : Format.formatter -\> Parsetree.type\_extension -\> unit;** **type\_param : Format.formatter -\>** **Parsetree.core\_type \* Asttypes.variance -\> unit;** **type\_params : Format.formatter -\>** **(Parsetree.core\_type \* Asttypes.variance) list -\> unit;** **type\_with\_label : Format.formatter -\>** **Asttypes.label \* Parsetree.core\_type -\> unit;** **tyvar : Format.formatter -\> string -\> unit; under\_ifthenelse : 'b;** **under\_pipe : 'b; under\_semi : 'b;** **value\_description : Format.formatter -\> Parsetree.value\_description -\> unit;** **virtual\_flag : Format.formatter -\> Asttypes.virtual\_flag -\> unit; .. \>** **as 'b**

*method reset\_semi :* **'b**

*method reset\_ifthenelse :* **'b**

*method reset\_pipe :* **'b**

*method signature :* **Format.formatter -\> Parsetree.signature\_item list -\> unit**

*method signature\_item :* **Format.formatter -\> Parsetree.signature\_item -\> unit**

*method simple\_expr :* **Format.formatter -\> Parsetree.expression -\> unit**

*method simple\_pattern :* **Format.formatter -\> Parsetree.pattern -\> unit**

*method string\_quot :* **Format.formatter -\> Asttypes.label -\> unit**

*method structure :* **Format.formatter -\> Parsetree.structure\_item list -\> unit**

*method structure\_item :* **Format.formatter -\> Parsetree.structure\_item -\> unit**

*method sugar\_expr :* **Format.formatter -\> Parsetree.expression -\> bool**

*method toplevel\_phrase :* **Format.formatter -\> Parsetree.toplevel\_phrase -\> unit**

*method type\_declaration :* **Format.formatter -\> Parsetree.type\_declaration -\> unit**

*method type\_def\_list :* **Format.formatter -\> Parsetree.type\_declaration list -\> unit**

*method type\_extension :* **Format.formatter -\> Parsetree.type\_extension -\> unit**

*method type\_param :* **Format.formatter -\> Parsetree.core\_type \* Asttypes.variance -\> unit**

*method type\_params :* **Format.formatter -\> (Parsetree.core\_type \* Asttypes.variance) list -\> unit**

*method type\_with\_label :* **Format.formatter -\> Asttypes.label \* Parsetree.core\_type -\> unit**

*method tyvar :* **Format.formatter -\> string -\> unit**

*method under\_pipe :* **'b**

*method under\_semi :* **'b**

*method under\_ifthenelse :* **'b**

*method value\_description :* **Format.formatter -\> Parsetree.value\_description -\> unit**

*method virtual\_flag :* **Format.formatter -\> Asttypes.virtual\_flag -\> unit**

*method attribute :* **Format.formatter -\> Parsetree.attribute -\> unit**

*method item\_attribute :* **Format.formatter -\> Parsetree.attribute -\> unit**

*method floating\_attribute :* **Format.formatter -\> Parsetree.attribute -\> unit**

*method attributes :* **Format.formatter -\> Parsetree.attributes -\> unit**

*method item\_attributes :* **Format.formatter -\> Parsetree.attributes -\> unit**

*method extension :* **Format.formatter -\> Parsetree.extension -\> unit**

*method item\_extension :* **Format.formatter -\> Parsetree.extension -\> unit**
