Version française
Home     About     Download     Resources     Contact us    
Browse thread
Looking for a configuration file library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] Looking for a configuration file library
On Tue, 27 Sep 2005, David MENTRE wrote:

> Hello,
>
> For easy configuration of my programs, I'm looking for some OCaml code
> to read and write a user configuration file.
>
> Currently, I have following requirements:
>
>  - pure OCaml, without depencies on other libraries (I have enough
> depencies in my program);
>
>  - allows human readable and editable configuration files (i.e. no
> XML), preferably structured;
>
>  - (preferably) allows to easily load and save OCaml data structure,
> like Hashtbl.
>
> On the Hump, I found Config_file:
>   http://caml.inria.fr/cgi-bin/hump.fr.cgi?contrib=335
>
> Any other suggestion?

David,
    I like the Lua-ML package used in C--. Lua is just about right as a
configuration language, especially if you wish to do some computation in your
config  file. It should satisfy your listed requirements.

    On the minus side IMO (I hate to be negative about something free) it uses
noweb, and is not up to date with the latest version of Lua. In particular,
the  use of noweb is annoying, but with a bit of grunt work you can undo that.

-- Brian