head 1.17; access; symbols; locks; strict; comment @# @; 1.17 date 2006.08.10.19.41.52; author rse; state Exp; branches; next 1.16; commitid 2c8HTdOLkl3nMkIr; 1.16 date 2005.10.03.09.39.09; author rse; state Exp; branches; next 1.15; 1.15 date 2005.02.18.10.37.04; author rse; state Exp; branches; next 1.14; 1.14 date 2005.01.24.14.55.10; author rse; state Exp; branches; next 1.13; 1.13 date 2004.12.19.19.38.26; author rse; state Exp; branches; next 1.12; 1.12 date 2004.12.04.12.58.03; author rse; state Exp; branches; next 1.11; 1.11 date 2004.11.27.20.02.39; author rse; state Exp; branches; next 1.10; 1.10 date 2004.10.31.19.41.07; author rse; state Exp; branches; next 1.9; 1.9 date 2004.04.26.13.21.17; author ossp; state Exp; branches; next 1.8; 1.8 date 2003.11.10.19.04.53; author rse; state Exp; branches; next 1.7; 1.7 date 2002.10.02.12.44.35; author rse; state Exp; branches; next 1.6; 1.6 date 2002.08.11.13.49.11; author rse; state Exp; branches; next 1.5; 1.5 date 2002.07.30.19.52.00; author rse; state Exp; branches; next 1.4; 1.4 date 2002.07.26.09.25.54; author rse; state Exp; branches; next 1.3; 1.3 date 2002.07.13.20.09.24; author rse; state Exp; branches; next 1.2; 1.2 date 2002.02.15.20.06.28; author rse; state Exp; branches; next 1.1; 1.1 date 2002.02.15.11.56.41; author rse; state Exp; branches; next ; desc @@ 1.17 log @release OSSP cfg 0.9.11 @ text @ #use wml::ossp area=pkg:lib subarea=cfg OSSP cfg

Configuration Parsing

Abstract

OSSP cfg is a ISO-C library for parsing arbitrary C/C++-style configuration files. A configuration is sequence of directives. Each directive consists of zero or more tokens. Each token can be either a string or again a complete sequence. This means the configuration syntax has a recursive structure and this way allows to create configurations with arbitrarily nested sections.

Additionally the configuration syntax provides complex single/double/balanced quoting of tokens, hexadecimal/octal/decimal character encodings, character escaping, C/C++ and Shell-style comments, etc. The library API allows importing a configuration text into an Abstract Syntax Tree (AST), traversing the AST and optionally exporting the AST again as a configuration text.

Documentation

, .

Authors

Status

Source

Donation

@ 1.16 log @release a bunch of OSSP libraries @ text @d39 1 a39 1 unstable="0.9.10" unstable_date="03-Oct-2005" d49 1 a49 1 stable="none" unstable="cfg-0.9.10.tar.gz"> @ 1.15 log @release OSSP l2 0.9.10 and OSSP cfg 0.9.9 @ text @d39 1 a39 1 unstable="0.9.9" unstable_date="18-Feb-2005" d49 1 a49 1 stable="none" unstable="cfg-0.9.9.tar.gz"> @ 1.14 log @release OSSP cfg 0.9.8 @ text @d39 1 a39 1 unstable="0.9.8" unstable_date="24-Jan-2005" d49 1 a49 1 stable="none" unstable="cfg-0.9.8.tar.gz"> @ 1.13 log @release OSSP cfg 0.9.7 @ text @d39 1 a39 1 unstable="0.9.7" unstable_date="19-Dec-2004" d49 1 a49 1 stable="none" unstable="cfg-0.9.7.tar.gz"> @ 1.12 log @release OSSP cfg 0.9.6 @ text @d39 1 a39 1 unstable="0.9.6" unstable_date="04-Dec-2004" d49 1 a49 1 stable="none" unstable="cfg-0.9.6.tar.gz"> @ 1.11 log @release OSSP cfg 0.9.5 @ text @d39 1 a39 1 unstable="0.9.5" unstable_date="27-Nov-2004" d49 1 a49 1 stable="none" unstable="cfg-0.9.5.tar.gz"> @ 1.10 log @release OSSP cfg 0.9.4 @ text @d39 1 a39 1 unstable="0.9.4" unstable_date="31-Oct-2004" d49 1 a49 1 stable="none" unstable="cfg-0.9.4.tar.gz"> @ 1.9 log @bulk update versions @ text @d39 1 a39 1 unstable="0.9.3" unstable_date="23-Apr-2004" d49 1 a49 1 stable="none" unstable="cfg-0.9.3.tar.gz"> @ 1.8 log @release OSSP sa 1.1.0, OSSP cfg 0.9.1 and OSSP l2 0.9.5 @ text @d39 1 a39 1 unstable="0.9.1" unstable_date="10-Nov-2003" d49 1 a49 1 stable="none" unstable="cfg-0.9.1.tar.gz"> @ 1.7 log @use bug reporting and manpage rendering @ text @d39 1 a39 1 unstable="0.9.0" unstable_date="30-Jul-2002" d49 1 a49 1 stable="none" unstable="cfg-0.9.0.tar.gz"> @ 1.6 log @flush the work of this afternoon: PayPal support, cleanups, etc @ text @d25 5 d37 1 @ 1.5 log @release OSSP l2 0.9.0 and OSSP l2 0.9.0 @ text @d45 4 @ 1.4 log @update percents @ text @d14 10 a23 2 syntax has a recursive structure and this way allows to configure structures which require arbitrarily nested sections. d33 2 a34 2 unstable="none" unstable_date="none" done=80> d43 1 a43 1 stable="none" unstable="none"> @ 1.3 log @add CVS references @ text @d26 1 a26 1 done=15> @ 1.2 log @even more content @ text @d10 6 a15 2 OSSP cfg provides parsing of C-style configuration files with an unlimited recursion depth. d31 1 @ 1.1 log @first cut for all library pages @ text @d6 1 a6 1

...

d10 3 d22 1 a22 1 done=100> @