package oasis

  1. Overview
  2. Docs
Tooling for building OCaml libraries and applications

Install

Dune Dependency

Authors

Maintainers

Sources

oasis-0.4.11.tar.gz
sha256=18b73deef4ed6e9a83337f24b3bbe2ded65268b3ff7309fcc00d25e57e1dc12e
md5=98492f4657c2c5b30e3b1bc945e58419

doc/oasis.base/BaseEnvLight/index.html

Module BaseEnvLight

Read-only access to 'setup.data'

This module defines the minimal set of functions to access data contained in 'setup.data'. It allows to build third party OCaml script, without embedding hundreeds line of code. It doesn't take into account '-C' and other options.

  • author Sylvain Le Gall
module MapString : Map.S with type key = string
type t = string MapString.t
val default_filename : string

Environment default file.

val load : ?allow_empty:bool -> ?filename:string -> ?stream:char Stream.t -> unit -> t

Load environment.

val var_expand : string -> t -> string

Expand a variable, replacing $(X) by variable X recursively.

val var_get : string -> t -> string

Get a variable that evaluate expression that can be found in it (see Buffer.add_substitute).

val var_choose : 'a OASISExpr.choices -> t -> 'a

Choose a value among conditional expressions.

OCaml

Innovation. Community. Security.