2012-10-31 11:11:33 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* OCaml *)
|
|
|
|
(* *)
|
|
|
|
(* Hongbo Zhang (University of Pennsylvania) *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
2012-10-17 08:50:07 -07:00
|
|
|
|
2012-10-31 11:11:33 -07:00
|
|
|
type space_formatter = (unit, Format.formatter, unit) format
|
|
|
|
class printer :
|
|
|
|
unit ->
|
|
|
|
object ('b)
|
|
|
|
val pipe : bool
|
|
|
|
val semi : bool
|
|
|
|
method binding :
|
2013-06-03 08:14:19 -07:00
|
|
|
Format.formatter -> Parsetree.value_binding -> unit
|
2012-11-05 06:30:56 -08:00
|
|
|
method bindings:
|
|
|
|
Format.formatter ->
|
2013-06-03 08:14:19 -07:00
|
|
|
Asttypes.rec_flag * Parsetree.value_binding list ->
|
2012-11-05 06:30:56 -08:00
|
|
|
unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method case_list :
|
2013-04-15 09:23:22 -07:00
|
|
|
Format.formatter -> Parsetree.case list -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method class_expr : Format.formatter -> Parsetree.class_expr -> unit
|
|
|
|
method class_field : Format.formatter -> Parsetree.class_field -> unit
|
|
|
|
method class_params_def :
|
2014-05-04 16:08:45 -07:00
|
|
|
Format.formatter -> (Parsetree.core_type * Asttypes.variance) list -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
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
|
2015-04-18 20:07:32 -07:00
|
|
|
method constant : Format.formatter -> Parsetree.constant -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method constant_string : Format.formatter -> string -> unit
|
2015-09-11 04:58:31 -07:00
|
|
|
method constructor_declaration :
|
|
|
|
Format.formatter -> (string * Parsetree.constructor_arguments
|
|
|
|
* Parsetree.core_type option * Parsetree.attributes)
|
|
|
|
-> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
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 :
|
2014-05-04 16:08:45 -07:00
|
|
|
Format.formatter -> Parsetree.extension_constructor -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method expression : Format.formatter -> Parsetree.expression -> unit
|
|
|
|
method expression1 : Format.formatter -> Parsetree.expression -> unit
|
|
|
|
method expression2 : Format.formatter -> Parsetree.expression -> unit
|
2014-05-04 16:08:45 -07:00
|
|
|
method extension_constructor :
|
|
|
|
Format.formatter -> Parsetree.extension_constructor -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method label_exp :
|
|
|
|
Format.formatter ->
|
2014-12-22 00:45:55 -08:00
|
|
|
Asttypes.arg_label * Parsetree.expression option * Parsetree.pattern ->
|
2012-10-31 11:11:33 -07:00
|
|
|
unit
|
|
|
|
method label_x_expression_param :
|
2014-12-22 00:45:55 -08:00
|
|
|
Format.formatter -> Asttypes.arg_label * Parsetree.expression -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method list :
|
|
|
|
?sep:space_formatter ->
|
|
|
|
?first:space_formatter ->
|
|
|
|
?last: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 :
|
|
|
|
?first:space_formatter ->
|
|
|
|
?last:space_formatter ->
|
|
|
|
(Format.formatter -> 'a -> unit) ->
|
|
|
|
Format.formatter -> 'a option -> unit
|
|
|
|
method paren :
|
2012-11-02 07:13:56 -07:00
|
|
|
?first:space_formatter -> ?last:space_formatter -> bool ->
|
|
|
|
(Format.formatter -> 'a -> unit) -> Format.formatter -> 'a -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method pattern : Format.formatter -> Parsetree.pattern -> unit
|
|
|
|
method pattern1 : Format.formatter -> Parsetree.pattern -> unit
|
2013-07-22 07:58:15 -07:00
|
|
|
method payload : Format.formatter -> Parsetree.payload -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method private_flag : Format.formatter -> Asttypes.private_flag -> unit
|
|
|
|
method rec_flag : Format.formatter -> Asttypes.rec_flag -> unit
|
2015-03-13 04:07:57 -07:00
|
|
|
method nonrec_flag : Format.formatter -> Asttypes.rec_flag -> unit
|
2015-07-17 07:31:05 -07:00
|
|
|
method record_declaration :
|
|
|
|
Format.formatter -> Parsetree.label_declaration list -> unit
|
2012-11-02 19:20:16 -07:00
|
|
|
|
2012-10-31 11:11:33 -07:00
|
|
|
method reset : 'b
|
|
|
|
method reset_semi : 'b
|
2012-11-02 19:20:16 -07:00
|
|
|
method reset_ifthenelse : 'b
|
|
|
|
method reset_pipe : 'b
|
2013-04-04 08:25:42 -07:00
|
|
|
|
2012-10-31 11:11:33 -07:00
|
|
|
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 :
|
2015-09-11 04:58:31 -07:00
|
|
|
Format.formatter -> Asttypes.rec_flag * Parsetree.type_declaration list
|
|
|
|
-> unit
|
2014-05-04 16:08:45 -07:00
|
|
|
method type_extension :
|
|
|
|
Format.formatter -> Parsetree.type_extension -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method type_param :
|
2014-05-04 16:08:45 -07:00
|
|
|
Format.formatter -> Parsetree.core_type * Asttypes.variance -> unit
|
2014-08-22 06:45:02 -07:00
|
|
|
method type_params :
|
|
|
|
Format.formatter -> (Parsetree.core_type * Asttypes.variance) list -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method type_with_label :
|
2014-12-22 00:45:55 -08:00
|
|
|
Format.formatter -> Asttypes.arg_label * Parsetree.core_type -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
method tyvar : Format.formatter -> string -> unit
|
|
|
|
method under_pipe : 'b
|
|
|
|
method under_semi : 'b
|
2012-11-02 19:20:16 -07:00
|
|
|
method under_ifthenelse : 'b
|
2012-10-31 11:11:33 -07:00
|
|
|
method value_description :
|
|
|
|
Format.formatter -> Parsetree.value_description -> unit
|
|
|
|
method virtual_flag : Format.formatter -> Asttypes.virtual_flag -> unit
|
2013-04-11 00:53:48 -07:00
|
|
|
method attribute : Format.formatter -> Parsetree.attribute -> unit
|
2014-08-22 06:45:02 -07:00
|
|
|
method item_attribute : Format.formatter -> Parsetree.attribute -> unit
|
|
|
|
method floating_attribute : Format.formatter -> Parsetree.attribute -> unit
|
2013-04-11 00:53:48 -07:00
|
|
|
method attributes : Format.formatter -> Parsetree.attributes -> unit
|
2014-08-22 06:45:02 -07:00
|
|
|
method item_attributes : Format.formatter -> Parsetree.attributes -> unit
|
|
|
|
method extension : Format.formatter -> Parsetree.extension -> unit
|
|
|
|
method item_extension : Format.formatter -> Parsetree.extension -> unit
|
2012-10-31 11:11:33 -07:00
|
|
|
end
|
|
|
|
val default : printer
|
|
|
|
val toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
|
|
|
|
val expression : Format.formatter -> Parsetree.expression -> unit
|
|
|
|
val string_of_expression : Parsetree.expression -> string
|
2012-11-02 07:13:56 -07:00
|
|
|
val top_phrase: Format.formatter -> Parsetree.toplevel_phrase -> unit
|
|
|
|
val core_type: Format.formatter -> Parsetree.core_type -> unit
|
|
|
|
val pattern: Format.formatter -> Parsetree.pattern -> unit
|
|
|
|
val signature: Format.formatter -> Parsetree.signature -> unit
|
|
|
|
val structure: Format.formatter -> Parsetree.structure -> unit
|
|
|
|
val string_of_structure: Parsetree.structure -> string
|