You are viewing a development version of the library. Goto the latest version.

Module BaseEnvLight

module BaseEnvLight: sig .. end
Read-only access to ''

This module defines the minimal set of functions to access data contained in ''. It allows to build third party OCaml script, without embedding hundreeds line of code.
Author(s): 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 -> 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.