package scfg

  1. Overview
  2. Docs

Module providing functions to parse a config from various kind of inputs.

val pp_token : Format.formatter -> Menhir_parser.token -> unit

Pretty print a token

val from_lexbuf : Sedlexing.lexbuf -> (Types.config, [> `Msg of string ]) result

Parse a config from a lexing buffer.

val from_string : string -> (Types.config, [> `Msg of string ]) result

Parse a config from a string.

val from_channel : in_channel -> (Types.config, [> `Msg of string ]) result

Parse a config from a channel.

val from_file : Fpath.t -> (Types.config, [> Rresult.R.msg ]) result

Parse a config from a file.

OCaml

Innovation. Community. Security.