English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-09-28 (15:15)
From: brogoff <brogoff@s...>
Subject: Re: [Caml-list] Looking for a configuration file library
On Wed, 28 Sep 2005, David MENTRE wrote:

> Brian,
> 2005/9/27, brogoff <brogoff@speakeasy.net>:
> >     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.
> I did not thought about this option but this is an interesting
> suggestion. In the long term, I also want to add scripting
> capabilities to my program so that might be done both at once.

Lua's designers intended that it be used for writing config files. It has found
some success in this niche, and even if you don't wish to use it's procedural
features, it works fine for var=val type files.

> >     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.
> I'm already using noweb for my program, so this is not an issue for me[1].
> Yours,
> d.
> [1] Even if, in the long term, I want to remove noweb in order to use
> a literate programing style relying on language source code, like
> ocamldoc.

That is exactly what I wish they had done. I haven't gone all the way and
used ocamldoc properly, but when I have time I will do that to my version of

-- Brian