package bcfg

  1. Overview
  2. Docs
A boringly simpleconfiguration format

Install

dune-project
 Dependency

Authors

Maintainers

Sources

bcfg-0.1.0.tbz
sha256=7c4862dc6f1bc77bf643881aaad4d59b718c8d5e8e206a63b6a2c532692f0d56
sha512=5c31155c41d6fb84133cbc9aa947a6a3e851acb562204412dd1310407e9b99c6d7619e5a0da77cc9f16268db2583daa5ede0f5db7e43a2057d31079d9fd4a17b

doc/bcfg/Bcfg_txtloc/index.html

Module Bcfg_txtlocSource

Sourcetype t =
  1. | Nowhere
  2. | Simple of {
    1. line : int;
    2. start : int;
    3. stop : int;
    }
  3. | Multiline of {
    1. start : int * int;
    2. stop : int * int;
    }
Sourceval pp : Format.formatter -> t -> unit
Sourcetype 'a with_txtloc = {
  1. txtloc : t;
  2. contents : 'a;
}
Sourceval make : t -> 'a -> 'a with_txtloc
Sourceval nowhere : 'a -> 'a with_txtloc
Sourceval expand : t -> ((int * int) * (int * int)) option
Sourceval compress : t -> t
Sourceval merge : t -> t -> t
Sourceval from_lexbuf : Lexing.lexbuf -> t
Sourceval line_start : t -> int
Sourceval line_end : t -> int
Sourcetype line =
  1. | Errored_line of {
    1. err : string;
    2. around : string * string;
    }
  2. | Context_line of string
  3. | Eof of {
    1. errored : bool;
    }
Sourceval errored_line : txtloc:t -> line_number:int -> string -> line
Sourceval context_line : string -> line
Sourceval input_scan_line : in_channel -> int
Sourceval input_line : in_channel -> string
Sourceval string_line_reader : string -> unit -> string
Sourceval lines_around : ?ctx:??? -> txtloc:t -> (unit -> string) -> (int * line) list
Sourceval lines_around_txtloc : ?ctx:??? -> txtloc:t -> in_channel -> (int * line) list
Sourceval lines_around_txtloc_string : ?ctx:??? -> txtloc:t -> string -> (int * line) list