aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-02-24.yaml
blob: 29ecb6c8806967bb2e19027ae4a118f994349112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%YAML 1.1
---
- name: spec-02-24
  tree: |
    +STR
    +DOC ---
    +SEQ <tag:clarkevans.com,2002:shape>
    +MAP <tag:clarkevans.com,2002:circle>
    =VAL :center
    +MAP {} &ORIGIN
    =VAL :x
    =VAL :73
    =VAL :y
    =VAL :129
    -MAP
    =VAL :radius
    =VAL :7
    -MAP
    +MAP <tag:clarkevans.com,2002:line>
    =VAL :start
    =ALI *ORIGIN
    =VAL :finish
    +MAP {}
    =VAL :x
    =VAL :89
    =VAL :y
    =VAL :102
    -MAP
    -MAP
    +MAP <tag:clarkevans.com,2002:label>
    =VAL :start
    =ALI *ORIGIN
    =VAL :color
    =VAL :0xFFEEBB
    =VAL :text
    =VAL :Pretty vector drawing.
    -MAP
    -SEQ
    -DOC
    -STR
  yaml: |
    %TAG ! tag:clarkevans.com,2002:
    --- !shape
      # Use the ! handle for presenting
      # tag:clarkevans.com,2002:circle
    - !circle
      center: &ORIGIN {x: 73, y: 129}
      radius: 7
    - !line
      start: *ORIGIN
      finish: { x: 89, y: 102 }
    - !label
      start: *ORIGIN
      color: 0xFFEEBB
      text: Pretty vector drawing.