xref: /aosp_15_r20/external/libconfig/contrib/chained/examples/example.cfg (revision 2e9d491483b805f09ea864149eadd5680efcc72a)
1// An example configuration file that stores information about a store.
2
3// Basic store information:
4name = "Books, Movies & More";
5longitude = 1200.345678;
6
7// Store inventory:
8inventory =
9{
10  books = ( { title  = "Treasure Island";
11              author = "Robert Louis Stevenson";
12              price  = 29.99;
13              qty    = 5; },
14            { title  = "Snow Crash";
15              author = "Neal Stephenson";
16              price  = 9.99;
17              qty    = 8; },
18            { title  = "Das Kapital";
19              price  = 0.0;
20              qty    = 100000; }
21          );
22
23  movies = ( { title = "Brazil";
24               media = "DVD";
25               price = 19.99;
26               qty = 11; },
27             { title = "The City of Lost Children";
28               media = "DVD";
29               price = 18.99;
30               qty = 5; },
31             { title = "Memento";
32               media = "Blu-Ray";
33               price = 24.99;
34               qty = 20;
35             },
36             { title = "Howard the Duck"; }
37           );
38};
39
40// Store hours:
41hours =
42{
43  mon = { open =  9; close = 18; };
44  tue = { open =  9; close = 18; };
45  wed = { open =  9; close = 18; };
46  thu = { open =  9; close = 18; };
47  fri = { open =  9; close = 20; };
48  sat = { open =  9; close = 20; };
49  sun = { open = 11; close = 16; };
50};
51
52lost_bag = ( 1234.5678, "Napkin", [1, 2, 3] );
53