3 # a simple php yaml class
6 # author: [chris wanstrath, chris@ozmm.org]
7 # websites: [http://www.yaml.org, http://spyc.sourceforge.net/]
8 # license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
9 # copyright: (c) 2005-2006 Chris Wanstrath
11 # spyc.yml - A file containing the YAML that Spyc understands.
15 # Mappings - with proper types
16 String: Anyone's name, really.
27 - Very Basic YAML Dumper
29 # A sequence of a sequence
31 - YAML is so easy to learn.
32 - Your config files will never be the same.
34 # Sequence of mappings
45 # A sequence like this.
50 # A folded block as a mapped value
57 # A literal block as a mapped value
59 There is nothing but time
66 - Needs to be backed up
67 - Needs to be normalized
70 # You can be a bit tricky
74 - [One, Two, Three, Four]
76 # Nested Inline Sequences
77 - [One, [Two, And, Three], Four, Five]
79 # Nested Nested Inline Sequences
80 - [This, [Is, Getting, [Ridiculous, Guys]], Seriously, [Show, Mercy]]
83 - {name: chris, age: young, brand: lucky strike}
85 # Nested inline mappings
86 - {name: mark, age: older than chris, brand: [marlboro, lucky strike]}
88 # References -- they're shaky, but functional
89 dynamic languages: &DLANGS
94 compiled languages: &CLANGS
101 # Added in .2.2: Escaped quotes
102 - you know, this shouldn't work. but it does.
103 - 'that''s my value.'
104 - 'again, that\'s my value.'
105 - "here's to \"quotes\", boss."
108 - {name: "Foo, Bar's", age: 20}
110 # Added in .2.4: bug [ 1418193 ] Quote Values in Nested Arrays
113 # Added in .2.4: malformed YAML
115 javascripts: [dom1.js, dom.js]
118 1040: Ooo, a numeric key! # And working comments? Wow! Colons in comments: a menace (0.3).
120 hash_1: Hash #and a comment
121 hash_2: "Hash #and a comment"
122 "hash#3": "Hash (#) can appear in key too"
125 float_test_with_quotes: '1.0'
126 float_inverse_test: 001
128 a_really_large_number: 115792089237316195423570985008687907853269984665640564039457584007913129639936 # 2^256
130 int array: [ 1, 2, 3 ]
132 array on several lines:
133 [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
134 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ]
136 morelesskey: "<value>"
139 sophisticated_array_of_zero: {rx: {tx: [0]} }
142 - { row: 0, col: 0, func: {tx: [0, 1]} }
146 Does this line in the end indeed make Spyc go to an infinite loop?