1 #----------------------------
2 # Example Configuration File
3 #---------------------------
9 /* This section defines some settings for our
10 * main application window, such as size and
16 title = "My Application";
17 size = { /* width */ w = 640; /* height */ h = 480; };
18 pos = { x = 350; y = 250; };
24 test-comment = "/* hello\n \"there\"*/";
26 test-long-string = "A very long string that spans multiple lines. "
27 /* but wait, there's more... */ "Adjacent strings are automatically"
30 test-escaped-string = "\"This is\n a test.\"";
35 my_array = [ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 ];
38 group2: { zzz = "this is a test"; };
40 states = [ "CT", // Connecticut
48 /* this would cause an error */
52 binary = [ 0xAA, 0xBB, 0xCC ];
54 list = ( ( "abc", 123, true ), 1.234, ( /* an empty list */ ) ,[ 1, 2, 3 ],
55 { a = (1, 2, true); } );
57 books = ( "inventory",
58 { title = "Treasure Island";
59 author = "Robert Louis Stevenson";
62 { title = "Snow Crash";
63 author = "Neal Stephenson";
76 unicode = "STARGΛ̊TE SG-1"; // UTF-8 string
77 bigint = 9223372036854775807L;
78 bighex = 0x1122334455667788L;