aboutsummaryrefslogtreecommitdiff
path: root/contrib/chained/examples/example.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/chained/examples/example.cfg')
-rw-r--r--contrib/chained/examples/example.cfg52
1 files changed, 52 insertions, 0 deletions
diff --git a/contrib/chained/examples/example.cfg b/contrib/chained/examples/example.cfg
new file mode 100644
index 0000000..f3c6c3a
--- /dev/null
+++ b/contrib/chained/examples/example.cfg
@@ -0,0 +1,52 @@
+// An example configuration file that stores information about a store.
+
+// Basic store information:
+name = "Books, Movies & More";
+longitude = 1200.345678;
+
+// Store inventory:
+inventory =
+{
+ books = ( { title = "Treasure Island";
+ author = "Robert Louis Stevenson";
+ price = 29.99;
+ qty = 5; },
+ { title = "Snow Crash";
+ author = "Neal Stephenson";
+ price = 9.99;
+ qty = 8; },
+ { title = "Das Kapital";
+ price = 0.0;
+ qty = 100000; }
+ );
+
+ movies = ( { title = "Brazil";
+ media = "DVD";
+ price = 19.99;
+ qty = 11; },
+ { title = "The City of Lost Children";
+ media = "DVD";
+ price = 18.99;
+ qty = 5; },
+ { title = "Memento";
+ media = "Blu-Ray";
+ price = 24.99;
+ qty = 20;
+ },
+ { title = "Howard the Duck"; }
+ );
+};
+
+// Store hours:
+hours =
+{
+ mon = { open = 9; close = 18; };
+ tue = { open = 9; close = 18; };
+ wed = { open = 9; close = 18; };
+ thu = { open = 9; close = 18; };
+ fri = { open = 9; close = 20; };
+ sat = { open = 9; close = 20; };
+ sun = { open = 11; close = 16; };
+};
+
+lost_bag = ( 1234.5678, "Napkin", [1, 2, 3] );