From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DCF39BB81 for ; Tue, 4 Jan 2005 11:24:24 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j04AOOuT025039 for ; Tue, 4 Jan 2005 11:24:24 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA09081 for ; Tue, 4 Jan 2005 11:24:23 +0100 (MET) Received: from relaissmtp.ens-lyon.fr (pluvier.ens-lyon.fr [140.77.167.5]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j04AONHX025035 for ; Tue, 4 Jan 2005 11:24:23 +0100 Received: from mouette.ens-lyon.fr ([140.77.167.4]) by relaissmtp.ens-lyon.fr with esmtp (Exim 3.35 #1 (Debian)) id 1CllrO-0004Oc-00; Tue, 04 Jan 2005 11:24:18 +0100 Received: by mouette.ens-lyon.fr (Postfix, from userid 33) id 3F3F73C61C2; Tue, 4 Jan 2005 11:24:18 +0100 (CET) To: caml-list@inria.fr Message-ID: <1104834258.41da6ed21d59a@mouette.ens-lyon.fr> Date: Tue, 04 Jan 2005 11:24:18 +0100 (CET) From: Jean-Baptiste Rouquier Cc: romildo@uber.com.br MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.6 X-Originating-IP: 83.214.6.87 X-Miltered: at nez-perce with ID 41DA6ED8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 41DA6ED7.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ens-lyon:01 implements:01 parser:01 explicitely:01 lib:01 cameleon:01 nesting:01 config:01 tar:01 arbitrary:01 parse:02 arg:03 library:03 identical:06 edu:07 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=1.6 required=5.0 tests=MISSING_SUBJECT autolearn=disabled version=3.0.0 X-Spam-Level: * > Is there a library that implements a parser > for configuration files similar to the *.ini > files from windows? For instance: > > [section 1] > key1 = value1 > key2 = value2 > > [section 2] > key3 = value3 > key4 = value4 > key5 = value5 Inifiles (http://www.csun.edu/~eric/inifiles-1.0.tar.gz) is explicitely designed to parse this file format. I also suggest my own lib, Config_file, available at http://savannah.nongnu.org/download/cameleon/. It allows comments, command lines options identical to file options (based on Arg), arbitrary nesting of subsections, error logging and a few more features. -- Jean-Baptiste Rouquier