Open rogerxu opened 6 years ago
-
:
Sequence of Scalars
- Apple
- Banana
- Orange
Mapping Scalars to Scalars
name: Roger
gender: male
age: 31
Mapping Scalars to Scalars
male:
- Roger
- Bob
female:
- Amy
- Linda
Sequence of Mappings
-
name: Roger
gender: male
age: 31
-
name: Bob
gender: male
age: 30
- name: Roger
gender: male
age: 31
- name: Bob
gender: male
age: 30
---
...
&<alias>
*<alias>
Node for “Sammy Sosa” appears twice in this document
---
hr:
- Mark McGwire
# Following node labeled SS
- &SS Sammy Sosa
rbi:
- *SS # Subsequent occurrence
- Ken Griffey
|
- new lines are perserved# ASCII Art
--- |
\//||\/||
// || ||__
>
- lines are joined by a space--- >
Mark McGwire's
year was crippled
by a knee injury.
unicode: "Sosa did fine.\u263A"
control: "\b1998\t1999\t2000\n"
hex esc: "\x0d\x0a is \r\n"
single: '"Howdy!" he cried.'
quoted: ' # Not a ''comment''.'
tie-fighter: '|\-*-/|'
null:
booleans: [ true, false ]
string: '012345'
canonical: 12345
decimal: +12345
octal: 0o14
hexadecimal: 0xC
canonical: 1.23015e+3
exponential: 12.3015e+02
fixed: 1230.15
negative infinity: -.inf
not a number: .NaN
canonical: 2001-12-15T02:59:43.1Z
iso8601: 2001-12-14t21:59:43.10-05:00
spaced: 2001-12-14 21:59:43.10 -5
date: 2002-12-14
The Official YAML Web Site