head 1.5; access; symbols FSL_1_0_1:1.4 FSL_1_0_0:1.4 FSL_0_9_0:1.4 CFG_0_9_0:1.4 FSL_0_1_12:1.4 FSL_0_1_11:1.4 FSL_0_1_10:1.4 FSL_0_1_9:1.4 FSL_0_1_8:1.4 FSL_0_1_7:1.4 FSL_0_1_6:1.4 FSL_0_1_5:1.4 FSL_0_1_1:1.4; locks; strict; comment @# @; 1.5 date 2002.08.02.19.07.13; author rse; state dead; branches; next 1.4; 1.4 date 2002.07.17.14.48.08; author rse; state Exp; branches; next 1.3; 1.3 date 2002.07.08.13.45.28; author rse; state Exp; branches; next 1.2; 1.2 date 2002.07.04.14.51.21; author rse; state Exp; branches; next 1.1; 1.1 date 2002.07.03.13.25.34; author rse; state Exp; branches; next ; desc @@ 1.5 log @full source tree overhauling @ text @## ## sample.cfg -- Example Feature Testing Configuration ## "==== Shell-style EOL comments ===="; #bar #bar foo1; #bar foo2;#bar foo3#bar # fails "foo4"#bar # works again ; "==== C++-style EOL comments ===="; //bar //bar foo1; //bar foo2;//bar foo3//bar # fails "foo4"//bar # works again ; "==== C-style block comments ===="; /*bar*/ /*bar*/ foo1; /*bar*/ foo2;/*bar*/ foo3/*bar*/ # fails "foo4"/*bar*/ # works again ; /* a C/C++ style block comment which goes over multiple lines and even includes some special / * ** * / characters and a nested /* co/**/mment */, too. */ "==== Single-Quoted Strings ===="; 'foo'; 'foo bar'; 'foo\\bar\'baz'; '\''; "==== Double-Quoted Strings ===="; "foo\r\nbar\r\n"; "foo\x1bbar\x{011b}baz"; "==== Flexible-Quoted Strings ===="; foo q{foo{bar{baz}bar}quux} bar; foo q{foo{bar{baz}\}bar}quux} bar; @ 1.4 log @allow C-style block comments to nest @ text @@ 1.3 log @start of feature checking sample config @ text @d33 2 a34 1 some special /* ** * / characters */ @ 1.2 log @Flush today's work: the library is now able to parse a .cfg file into an internal node tree and export this again in textual .cfg file format (including indented blocks). @ text @d2 1 a2 1 ## sample.cfg d5 8 a12 2 /* now comes a C/C++ style block comment ** quux */ d14 34 a47 18 foo bar -b --bar -qX --quux=X baz; rootdir /; // C++ style EOL comment tmpdir /tmp; directory /foo { deny from all; allow from { 1.2.3.4; 6.7.8.9 }; fuck; foobar { baz } quux; }; directory /foo2 { deny from all; # shell-style EOL comment allow from { 1.2.3.4; 6.7.8.9 } butnot { 1; 2; 3; }; fuck; foobar { baz } quux "multiline string,\ without blanks" baz; }; @ 1.1 log @Add this first cut for the forthcoming OSSP cfg library to CVS. This is work in progress and still not ready for use anywhere. @ text @d8 1 a8 1 foo -b --bar -qX --quux=X baz @