package vlt

  1. Overview
  2. Docs

This module defines the contents of a configuration file.

type value =
  1. | Identifier of string
    (*

    An identifier value.

    *)
  2. | Integer of int
    (*

    An integer value.

    *)
  3. | Float of float
    (*

    A float value.

    *)
  4. | String of string
    (*

    A string value, unescaped.

    *)
  5. | And of value * value
    (*

    v1 && v2

    *)
  6. | Or of value * value
    (*

    v1 || v2

    *)

The type of property values.

type section = {
  1. name : Name.t;
    (*

    Section name.

    *)
  2. elements : (string * value) list;
    (*

    Key, value assocation list of section properties.

    *)
}

The type of a configuration section.

type t = section list

The type of configuration file contents.

exception Exception of int * string

Exception to be raised if file loading fails. The first parameter is the line of the error, while the second parameter is a short description of the error.

OCaml

Innovation. Community. Security.