package ocamlc-loc

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dune-3.22.1.tbz
sha256=0c0b98396c32ec426886c2c2294024fd687ac5114d4dda0af9dc8a2e584d47fd
sha512=4dc4ed45fb52a3017bc73fdbcb7b88c1710cebfdbb87ecb6f933582f8f0a27ef740f8c4009439ff6a878e1115c3f29d199e63d0367a88a09d2ea19b61517a814

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