package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type parsetree = [
  1. | `Interface of Ocaml_parsing.Parsetree.signature
  2. | `Implementation of Ocaml_parsing.Parsetree.structure
]
type comment = string * Ocaml_parsing.Location.t
type result = {
  1. lexer_keywords : string list;
  2. lexer_errors : exn list;
  3. parser_errors : exn list;
  4. comments : comment list;
  5. parsetree : parsetree;
  6. no_labels_for_completion : bool;
}
val with_ambient_reader : Mconfig.t -> Msource.t -> (unit -> 'a) -> 'a
val parse : ?for_completion:Msource.position -> Mconfig.t -> (Msource.t * parsetree option) -> result
val print_pretty : Mconfig.t -> Msource.t -> pretty_parsetree -> string
val print_outcome : Mconfig.t -> Msource.t -> outcometree -> string
val print_batch_outcome : Mconfig.t -> Msource.t -> outcometree list -> string list
val reconstruct_identifier : Mconfig.t -> Msource.t -> Lexing.position -> string Ocaml_parsing.Location.loc list