• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// An example configuration file that stores information about a store.
2
3// Basic store information:
4name = "Books, Movies & More";
5
6// Store inventory:
7inventory =
8{
9  books = ( { title  = "Treasure Island";
10              author = "Robert Louis Stevenson";
11              price  = 29.99;
12              qty    = 5; },
13            { title  = "Snow Crash";
14              author = "Neal Stephenson";
15              price  = 9.99;
16              qty    = 8; }
17          );
18
19  movies = ( { title = "Brazil";
20               media = "DVD";
21               price = 19.99;
22               qty = 11; },
23             { title = "The City of Lost Children";
24               media = "DVD";
25               price = 18.99;
26               qty = 5; },
27             { title = "Memento";
28               media = "Blu-Ray";
29               price = 24.99;
30               qty = 20;
31             },
32             { title = "Howard the Duck"; }
33           );
34};
35
36// Store hours:
37hours =
38{
39  mon = { open =  9; close = 18; };
40  tue = { open =  9; close = 18; };
41  wed = { open =  9; close = 18; };
42  thu = { open =  9; close = 18; };
43  fri = { open =  9; close = 20; };
44  sat = { open =  9; close = 20; };
45  sun = { open = 11; close = 16; };
46};
47