package ocamlc-loc

  1. Overview
  2. Docs
Parse ocaml compiler output into structured form

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.20.0.tbz
sha256=767999da81e528484139ecfe927288ffe521ac2467462a40d6a760ed789ba086
sha512=18f6a293cb5d4423a3bf69ce9559b40e7075e49b13c79166f2aacfa55cbc2609e20938bad889b43df0d5a3396ea034e405631d3757da6164c51be375e5751632

doc/ocamlc-loc/Ocamlc_loc/index.html

Module Ocamlc_locSource

  • alert unstable The API of this library is not stable and may change without notice.
Sourcetype code = {
  1. code : int;
  2. name : string;
}
Sourcetype source =
  1. | Code of code
  2. | Alert of string
Sourcetype lines =
  1. | Single of int
  2. | Range of int * int
Sourcetype loc = {
  1. chars : (int * int) option;
  2. lines : lines;
  3. path : string;
}
Sourcetype severity =
  1. | Error of source option
  2. | Warning of code
  3. | Alert of {
    1. name : string;
    2. source : string;
    }
Sourcetype report = {
  1. loc : loc;
  2. severity : severity;
  3. message : string;
  4. related : (loc * string) list;
}
Sourceval dyn_of_report : report -> Dyn.t
Sourceval dyn_of_raw : [ `Loc of loc | `Message of string ] list -> Dyn.t
Sourceval parse_raw : string -> [ `Loc of loc | `Message of string ] list
Sourceval parse : string -> report list
OCaml

Innovation. Community. Security.