package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

merlin-5.6.1-504.tbz
sha256=cc3c7c01f19a454c96f6bc8a39538023e01042519f001a895fd61488e2b49fb5
sha512=4268a932a8494023699abd98e0d52deb6f201f656863849db230dc8692050e0fe00cc25a50d70e902410f17a27268fd8335c32636f616ef012cf86fc9a43e019

doc/merlin-lib.ocaml_parsing/Ocaml_parsing/Pprintast/index.html

Module Ocaml_parsing.PprintastSource

Pretty-printers for Parsetree

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

Sourcetype space_formatter = (unit, Format.formatter, unit) format
Sourceval longident : Format.formatter -> Longident.t -> unit
Sourceval constr : Format.formatter -> Longident.t -> unit
Sourceval expression : Format.formatter -> Parsetree.expression -> unit
Sourceval string_of_expression : Parsetree.expression -> string
Sourceval pattern : Format.formatter -> Parsetree.pattern -> unit
Sourceval core_type : Format.formatter -> Parsetree.core_type -> unit
Sourceval signature : Format.formatter -> Parsetree.signature -> unit
Sourceval structure : Format.formatter -> Parsetree.structure -> unit
Sourceval string_of_structure : Parsetree.structure -> string
Sourceval module_expr : Format.formatter -> Parsetree.module_expr -> unit
Sourceval toplevel_phrase : Format.formatter -> Parsetree.toplevel_phrase -> unit
Sourceval class_field : Format.formatter -> Parsetree.class_field -> unit
Sourceval class_type_field : Format.formatter -> Parsetree.class_type_field -> unit
Sourceval class_expr : Format.formatter -> Parsetree.class_expr -> unit
Sourceval class_type : Format.formatter -> Parsetree.class_type -> unit
Sourceval module_type : Format.formatter -> Parsetree.module_type -> unit
Sourceval structure_item : Format.formatter -> Parsetree.structure_item -> unit
Sourceval signature_item : Format.formatter -> Parsetree.signature_item -> unit
Sourceval payload : Format.formatter -> Parsetree.payload -> unit
Sourceval tyvar_of_name : string -> string

Turn a type variable name into a valid identifier, taking care of the special treatment required for the single quote character in second position, or for keywords by escaping them with \#. No-op on "_".

Sourceval tyvar : Format.formatter -> string -> unit

Print a type variable name as a valid identifier, taking care of the special treatment required for the single quote character in second position, or for keywords by escaping them with \#. No-op on "_".

Sourcetype longindent_kind =
  1. | Constr
    (*

    variant constructors

    *)
  2. | Type
    (*

    core types, module types, class types, and classes

    *)
  3. | Other
    (*

    values and modules

    *)
Sourceval case_list : Format.formatter -> Parsetree.case list -> unit
Sourceval ident_of_name : Format.formatter -> string -> unit
Sourceval needs_parens : kind:longindent_kind -> string -> bool
Sourcemodule Doc : sig ... end

Format_doc functions for error messages