1 개요[ | ]
- YAML (YAML Aint't Markup Language)
- 얘멀 /ˈjæməl/, 얘믈, 야믈
- 데이터 교환 형식의 하나
- 사람이 읽을 수 있도록 정한 데이터 직렬화 형식
- C, Perl, PHP, Python, 루비, 자바스크립트 등에서 사용가능
- 모든 데이터를 리스트, 해쉬, 스칼라 데이터의 조합으로 표현
- 확장자:
.yaml
,.yml
- 첫 릴리즈: 2001년
2 예시[ | ]
2.1 리스트[ | ]
yaml
Copy
--- # Favorite movies, block format
- Casablanca
- Spellbound
- Notorious
--- # Shopping list, inline format
[milk, bread, eggs]
2.2 해시[ | ]
yaml
Copy
--- # Block
name: John Smith
age: 33
--- # Inline
{name: John Smith, age: 33}
2.3 블럭 리터럴[ | ]

2.3.1 개행 보존[ | ]
yaml
Copy
--- |
There was a young fellow of Warwick
Who had reason for feeling euphoric
For he could, by election
Have triune erection
Ionic, Corinthian, and Doric
2.3.2 개행 무시[ | ]
yaml
Copy
--- >
Wrapped text
will be folded
into a single
paragraph
Blank lines denote
paragraph breaks
2.4 해시의 리스트[ | ]
yaml
Copy
- {name: John Smith, age: 33}
- name: Mary Smith
age: 27
2.5 리스트의 해시[ | ]
yaml
Copy
men: [John Smith, Bill Jones]
women:
- Mary Smith
- Susan Williams
3 같이 보기[ | ]
4 참고[ | ]
- http://www.yaml.org/
- http://www.yaml.org/refcard.html
- 위키백과 "YAML"
- RFC 2822
- https://sebiwi.github.io/comics/yaml/ YAML 《Sebiwi》 2018-02-19
편집자 John Jeong Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.