Questions Concepts
GitHub icon


YAML - Data notation

< >

YAML, aka YAML Ain't Markup Language, is a data notation created in 2001.

#66on PLDB 22Years Old 525Repos

Try now: Riju

YAML (YAML Ain't Markup Language) is a human-readable data serialization language. It is commonly used for configuration files, but could be used in many applications where data is being stored (e.g. debugging output) or transmitted (e.g. Read more on Wikipedia...

Example from Riju:
output: "Hello, world!"
Example from hello-world:
hello: world
Example from Linguist:
--- name: R Console fileTypes: [] scopeName: source.r-console uuid: F629C7F3-823B-4A4C-8EEE-9971490C5710 patterns: - name: source.r.embedded.r-console begin: "^> " beginCaptures: "0": name: punctuation.section.embedded.r-console end: \n|\z patterns: - include: source.r keyEquivalent: ^~R
Example from Wikipedia:
--- example: > HTML goes into YAML without modification message: | <blockquote style="font: italic 12pt Times"> <p>"Three is always greater than two, even for large values of two"</p> <p>--Author Unknown</p> </blockquote> date: 2007-06-01

Language features

Feature Supported Token Example
# Explicitly typed set.
baseball players: !!set
  ? Mark McGwire
  ? Sammy Sosa
  ? Ken Griffey
# Flow style
baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }
Line Comments #
# A comment
Semantic Indentation

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · · Logout