package ocamlformat

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a with_comments = {
  1. ast : 'a;
  2. comments : Cmt.t Ocamlformat_stdlib.list;
  3. prefix : Ocamlformat_stdlib.string;
  4. source : Source.t;
}
module W : sig ... end
val parse : ?disable_w50:Ocamlformat_stdlib.bool -> ('b -> Stdlib.Lexing.lexbuf -> 'a) -> 'b -> Conf.t -> source:Ocamlformat_stdlib.string -> 'a with_comments
  • raises [Warning50]

    on misplaced documentation comments.

val parse_toplevel : ?disable_w50:Ocamlformat_stdlib.bool -> Conf.t -> source:Ocamlformat_stdlib.string -> (Extended_ast.use_file with_comments, Extended_ast.repl_file with_comments) Ocamlformat_stdlib.Either.t

Variant of parse that uses Extended_ast.Parse.toplevel. This function handles conf.parse_toplevel_phrases.

OCaml

Innovation. Community. Security.