package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-5.5-503.tbz
sha256=67da3b34f2fea07678267309f61da4a2c6f08298de0dc59655b8d30fd8269af1
sha512=1fb3b5180d36aa82b82a319e15b743b802b6888f0dc67645baafdb4e18dfc23a7b90064ec9bc42f7424061cf8cde7f8839178d8a8537bf4596759f3ff4891873

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

OCaml

Innovation. Community. Security.