2011-08-16 12:53:13 +00:00
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2013-12-17 14:19:01 +00:00
2011-08-16 12:53:13 +00:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
2014-08-01 01:00:40 +00:00
< title > YAML syntax — D:YAML 0.5 documentation< / title >
2013-12-17 14:19:01 +00:00
2011-08-16 12:53:13 +00:00
< link rel = "stylesheet" href = "../_static/default.css" type = "text/css" / >
< link rel = "stylesheet" href = "../_static/pygments.css" type = "text/css" / >
2013-12-17 14:19:01 +00:00
2011-08-16 12:53:13 +00:00
< script type = "text/javascript" >
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '../',
2014-08-01 01:00:40 +00:00
VERSION: '0.5',
2011-08-16 12:53:13 +00:00
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
< / script >
< script type = "text/javascript" src = "../_static/jquery.js" > < / script >
< script type = "text/javascript" src = "../_static/underscore.js" > < / script >
< script type = "text/javascript" src = "../_static/doctools.js" > < / script >
2014-08-01 01:00:40 +00:00
< link rel = "top" title = "D:YAML 0.5 documentation" href = "../index.html" / >
2011-08-16 12:53:13 +00:00
< link rel = "next" title = "Differences between D:YAML and the YAML specification" href = "../articles/spec_differences.html" / >
< link rel = "prev" title = "Custom YAML data types" href = "custom_types.html" / >
< / head >
< body >
< div class = "related" >
< h3 > Navigation< / h3 >
< ul >
< li class = "right" style = "margin-right: 10px" >
< a href = "../articles/spec_differences.html" title = "Differences between D:YAML and the YAML specification"
accesskey="N">next< / a > < / li >
< li class = "right" >
< a href = "custom_types.html" title = "Custom YAML data types"
accesskey="P">previous< / a > |< / li >
2014-08-01 01:00:40 +00:00
< li > < a href = "../index.html" > D:YAML 0.5 documentation< / a > » < / li >
2011-08-16 12:53:13 +00:00
< / ul >
< / div >
< div class = "document" >
< div class = "documentwrapper" >
< div class = "bodywrapper" >
< div class = "body" >
< div class = "section" id = "yaml-syntax" >
< h1 > YAML syntax< a class = "headerlink" href = "#yaml-syntax" title = "Permalink to this headline" > ¶< / a > < / h1 >
< p > This is an introduction to the most common YAML constructs. For more detailed
information, see < a class = "reference external" href = "http://pyyaml.org/wiki/PyYAMLDocumentation" > PyYAML documentation< / a > ,
which this article is based on,
< a class = "reference external" href = "http://yaml.org/spec/1.1/#id857168" > Chapter 2 of the YAML specification< / a >
or the < a class = "reference external" href = "http://en.wikipedia.org/wiki/YAML" > Wikipedia page< / a > .< / p >
2011-10-14 08:34:53 +00:00
< p > YAML is a data serialization format designed for human readability. YAML is a
recursive acronym for “ YAML Ain’ t Markup Language” .< / p >
2011-08-16 12:53:13 +00:00
< p > YAML is similar to JSON, and in fact, JSON is a subset of YAML 1.2; but YAML has
2011-10-14 08:34:53 +00:00
some more advanced features and is easier to read. However, it is also more
2011-08-16 12:53:13 +00:00
difficult to parse (and probably somewhat slower). Data is stored in mappings
(associative arrays), sequences (lists) and scalars (single values). Data
2011-10-14 08:34:53 +00:00
structure hierarchy depends either on indentation (block context, similar to
2011-08-16 12:53:13 +00:00
Python code), or nesting of brackets and braces (flow context, similar to JSON).
YAML comments begin with < tt class = "docutils literal" > < span class = "pre" > #< / span > < / tt > and continue until the end of line.< / p >
< div class = "section" id = "documents" >
< h2 > Documents< a class = "headerlink" href = "#documents" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > A YAML stream consists of one or more documents starting with < tt class = "docutils literal" > < span class = "pre" > ---< / span > < / tt > and
2011-10-14 08:34:53 +00:00
optionally ending with < tt class = "docutils literal" > < span class = "pre" > ...< / span > < / tt > . < tt class = "docutils literal" > < span class = "pre" > ---< / span > < / tt > can be left out for the first document.< / p >
2011-08-16 12:53:13 +00:00
< p > Single document with no explicit start or end:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< / pre > < / div >
< / div >
< p > Same document with explicit start and end:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "nn" > ---< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< span class = "nn" > ...< / span >
< / pre > < / div >
< / div >
< p > A stream containing multiple documents:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "nn" > ---< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< span class = "nn" > ---< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Linux< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > BSD< / span >
< span class = "nn" > ---< / span >
< span class = "l-Scalar-Plain" > answer< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > 42< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "sequences" >
< h2 > Sequences< a class = "headerlink" href = "#sequences" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Sequences are arrays of nodes of any type, similar e.g. to Python lists.
2011-10-14 08:34:53 +00:00
In block context, each item begins with hyphen+space “ - ” . In flow context,
2011-08-16 12:53:13 +00:00
sequences have syntax similar to D arrays.< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Block context< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Flow context< / span >
< span class = "p-Indicator" > [< / span > < span class = "nv" > Red< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > Green< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > Blue< / span > < span class = "p-Indicator" > ]< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested< / span >
< span class = "p-Indicator" > -< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< span class = "p-Indicator" > -< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Linux< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > BSD< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested flow< / span >
< span class = "p-Indicator" > [[< / span > < span class = "nv" > Red< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > Green< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > Blue< / span > < span class = "p-Indicator" > ],< / span > < span class = "p-Indicator" > [< / span > < span class = "nv" > Linux< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > BSD< / span > < span class = "p-Indicator" > ]]< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested in a mapping< / span >
< span class = "l-Scalar-Plain" > Colors< / span > < span class = "p-Indicator" > :< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Red< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Green< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Blue< / span >
< span class = "l-Scalar-Plain" > Operating systems< / span > < span class = "p-Indicator" > :< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > Linux< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > BSD< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "mappings" >
< h2 > Mappings< a class = "headerlink" href = "#mappings" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Mappings are associative arrays where each key and value can be of any type,
similar e.g. to Python dictionaries. In block context, keys and values are
2011-10-14 08:34:53 +00:00
separated by colon+space ” : ” . In flow context, mappings have syntax similar
2011-08-16 12:53:13 +00:00
to D associative arrays, but with braces instead of brackets:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Block context< / span >
< span class = "l-Scalar-Plain" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Athlon< / span >
< span class = "l-Scalar-Plain" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Radeon< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Linux< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Flow context< / span >
< span class = "p-Indicator" > {< / span > < span class = "nv" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Athlon< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Radeon< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Linux< / span > < span class = "p-Indicator" > }< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested< / span >
< span class = "l-Scalar-Plain" > PC< / span > < span class = "p-Indicator" > :< / span >
< span class = "l-Scalar-Plain" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Athlon< / span >
< span class = "l-Scalar-Plain" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Radeon< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Debian< / span >
< span class = "l-Scalar-Plain" > Phone< / span > < span class = "p-Indicator" > :< / span >
< span class = "l-Scalar-Plain" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Cortex< / span >
< span class = "l-Scalar-Plain" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > PowerVR< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Android< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested flow< / span >
< span class = "p-Indicator" > {< / span > < span class = "nv" > PC< / span > < span class = "p-Indicator" > :< / span > < span class = "p-Indicator" > {< / span > < span class = "nv" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Athlon< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Radeon< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Debian< / span > < span class = "p-Indicator" > },< / span >
< span class = "nv" > Phone< / span > < span class = "p-Indicator" > :< / span > < span class = "p-Indicator" > {< / span > < span class = "nv" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Cortex< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > PowerVR< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > Android< / span > < span class = "p-Indicator" > }}< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested in a sequence< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Athlon< / span >
< span class = "l-Scalar-Plain" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Radeon< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Debian< / span >
< span class = "p-Indicator" > -< / span > < span class = "l-Scalar-Plain" > CPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Cortex< / span >
< span class = "l-Scalar-Plain" > GPU< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > PowerVR< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Android< / span >
< / pre > < / div >
< / div >
2011-10-14 08:34:53 +00:00
< p > Complex keys start with question mark+space ” ? ” .< / p >
2011-08-16 12:53:13 +00:00
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "c1" > #Nested in a sequence< / span >
< span class = "p-Indicator" > ?< / span > < span class = "p-Indicator" > [< / span > < span class = "nv" > CPU< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > GPU< / span > < span class = "p-Indicator" > ]:< / span > < span class = "p-Indicator" > [< / span > < span class = "nv" > Athlon< / span > < span class = "p-Indicator" > ,< / span > < span class = "nv" > Radeon< / span > < span class = "p-Indicator" > ]< / span >
< span class = "l-Scalar-Plain" > OS< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Debian< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "scalars" >
< h2 > Scalars< a class = "headerlink" href = "#scalars" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Scalars are simple values such as integers, strings, timestamps and so on.
There are multiple scalar styles.< / p >
< p > Plain scalars use no quotes, start with the first non-space and end with the
last non-space character:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > scalar< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Plain scalar< / span >
< / pre > < / div >
< / div >
< p > Single quoted scalars start and end with single quotes. A single quote is
represented by a pair of single quotes ‘ ’ .< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > scalar< / span > < span class = "p-Indicator" > :< / span > < span class = "s" > ' Single< / span > < span class = "nv" > < / span > < span class = "s" > quoted< / span > < span class = "nv" > < / span > < span class = "s" > scalar< / span > < span class = "nv" > < / span > < span class = "s" > ending< / span > < span class = "nv" > < / span > < span class = "s" > with< / span > < span class = "nv" > < / span > < span class = "s" > some< / span > < span class = "nv" > < / span > < span class = "s" > spaces< / span > < span class = "nv" > < / span > < span class = "s" > ' < / span >
< / pre > < / div >
< / div >
< p > Double quoted scalars support C-style escape sequences.< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > scalar< / span > < span class = "p-Indicator" > :< / span > < span class = "s" > " Double< / span > < span class = "nv" > < / span > < span class = "s" > quoted< / span > < span class = "nv" > < / span > < span class = "s" > scalar< / span > < span class = "nv" > < / span > < span class = "s" > \n< / span > < span class = "nv" > < / span > < span class = "s" > with< / span > < span class = "nv" > < / span > < span class = "s" > some< / span > < span class = "nv" > < / span > < span class = "s" > \\< / span > < span class = "nv" > < / span > < span class = "s" > escape< / span > < span class = "nv" > < / span > < span class = "s" > sequences" < / span >
< / pre > < / div >
< / div >
< p > Block scalars are convenient for multi-line values. They start either with
< tt class = "docutils literal" > < span class = "pre" > |< / span > < / tt > or with < tt class = "docutils literal" > < span class = "pre" > > < / span > < / tt > . With < tt class = "docutils literal" > < span class = "pre" > |< / span > < / tt > , the newlines in the scalar are preserved.
With < tt class = "docutils literal" > < span class = "pre" > > < / span > < / tt > , the newlines between two non-empty lines are removed.< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > scalar< / span > < span class = "p-Indicator" > :< / span > < span class = "p-Indicator" > |< / span >
< span class = "no" > Newlines are preserved< / span >
< span class = "no" > First line< / span >
< span class = "no" > Second line< / span >
< / pre > < / div >
< / div >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > scalar< / span > < span class = "p-Indicator" > :< / span > < span class = "p-Indicator" > > < / span >
< span class = "no" > Newlines are folded< / span >
< span class = "no" > This is still the first paragraph< / span >
< span class = "no" > This is the second< / span >
< span class = "no" > paragraph< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "anchors-and-aliases" >
< h2 > Anchors and aliases< a class = "headerlink" href = "#anchors-and-aliases" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Anchors and aliases can reduce size of YAML code by allowing you to define a
value once, assign an anchor to it and use alias referring to that anchor
anywhere else you need that value. It is possible to use this to create
recursive data structures and some parsers support this; however, D:YAML does
not (this might change in the future, but it is unlikely).< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > Person< / span > < span class = "p-Indicator" > :< / span > < span class = "nl" > & AD< / span >
< span class = "l-Scalar-Plain" > gender< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > male< / span >
< span class = "l-Scalar-Plain" > name< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Arthur Dent< / span >
< span class = "l-Scalar-Plain" > Clone< / span > < span class = "p-Indicator" > :< / span > < span class = "nv" > *AD< / span >
< / pre > < / div >
< / div >
< / div >
< div class = "section" id = "tags" >
< h2 > Tags< a class = "headerlink" href = "#tags" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Tags are identifiers that specify data types of YAML nodes. Most default YAML
tags are resolved implicitly, so there is no need to specify them. D:YAML also
supports implicit resolution for custom, user specified tags.< / p >
< p > Explicitly specified tags:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > answer< / span > < span class = "p-Indicator" > :< / span > < span class = "kt" > !!int< / span > < span class = "s" > " 42" < / span >
< span class = "l-Scalar-Plain" > name< / span > < span class = "p-Indicator" > :< / span > < span class = "kt" > !!str< / span > < span class = "s" > " Arthur< / span > < span class = "nv" > < / span > < span class = "s" > Dent" < / span >
< / pre > < / div >
< / div >
< p > Implicit tags:< / p >
< div class = "highlight-yaml" > < div class = "highlight" > < pre > < span class = "l-Scalar-Plain" > answer< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > 42< / span > < span class = "c1" > #int< / span >
< span class = "l-Scalar-Plain" > name< / span > < span class = "p-Indicator" > :< / span > < span class = "l-Scalar-Plain" > Arthur Dent< / span > < span class = "c1" > #string< / span >
< / pre > < / div >
< / div >
< p > This table shows D types stored in < em > yaml.Node< / em > default YAML tags are converted to.
Some of these might change in the future (especially !!map and !!set).< / p >
< table border = "1" class = "docutils" >
< colgroup >
2014-08-01 01:00:40 +00:00
< col width = "52%" / >
< col width = "48%" / >
2011-08-16 12:53:13 +00:00
< / colgroup >
< thead valign = "bottom" >
2013-12-17 14:19:01 +00:00
< tr class = "row-odd" > < th class = "head" > YAML tag< / th >
2011-08-16 12:53:13 +00:00
< th class = "head" > D type< / th >
< / tr >
< / thead >
< tbody valign = "top" >
2013-12-17 14:19:01 +00:00
< tr class = "row-even" > < td > !!null< / td >
2011-08-16 12:53:13 +00:00
< td > yaml.YAMLNull< / td >
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-odd" > < td > !!bool< / td >
2011-08-16 12:53:13 +00:00
< td > bool< / td >
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-even" > < td > !!int< / td >
2011-08-16 12:53:13 +00:00
< td > long< / td >
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-odd" > < td > !!float< / td >
2011-08-16 12:53:13 +00:00
< td > real< / td >
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-even" > < td > !!binary< / td >
2011-08-16 12:53:13 +00:00
< td > ubyte[]< / td >
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-odd" > < td > !!timestamp< / td >
2014-08-01 01:00:40 +00:00
< td > std.datetime.SysTime< / td >
2011-08-16 12:53:13 +00:00
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-even" > < td > !!map, !!omap, !!pairs< / td >
2014-08-01 01:00:40 +00:00
< td > yaml.Node.Pair[]< / td >
2011-08-16 12:53:13 +00:00
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-odd" > < td > !!seq, !!set< / td >
2014-08-01 01:00:40 +00:00
< td > yaml.Node[]< / td >
2011-08-16 12:53:13 +00:00
< / tr >
2013-12-17 14:19:01 +00:00
< tr class = "row-even" > < td > !!str< / td >
2011-08-16 12:53:13 +00:00
< td > string< / td >
< / tr >
< / tbody >
< / table >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "sphinxsidebar" >
< div class = "sphinxsidebarwrapper" >
< p class = "logo" > < a href = "../index.html" >
< img class = "logo" src = "../_static/logo210.png" alt = "Logo" / >
< / a > < / p >
< h3 > < a href = "../index.html" > Table Of Contents< / a > < / h3 >
< ul >
< li > < a class = "reference internal" href = "#" > YAML syntax< / a > < ul >
< li > < a class = "reference internal" href = "#documents" > Documents< / a > < / li >
< li > < a class = "reference internal" href = "#sequences" > Sequences< / a > < / li >
< li > < a class = "reference internal" href = "#mappings" > Mappings< / a > < / li >
< li > < a class = "reference internal" href = "#scalars" > Scalars< / a > < / li >
< li > < a class = "reference internal" href = "#anchors-and-aliases" > Anchors and aliases< / a > < / li >
< li > < a class = "reference internal" href = "#tags" > Tags< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
< div class = "clearer" > < / div >
< / div >
< div class = "related" >
< h3 > Navigation< / h3 >
< ul >
< li class = "right" style = "margin-right: 10px" >
< a href = "../articles/spec_differences.html" title = "Differences between D:YAML and the YAML specification"
>next< / a > < / li >
< li class = "right" >
< a href = "custom_types.html" title = "Custom YAML data types"
>previous< / a > |< / li >
2014-08-01 01:00:40 +00:00
< li > < a href = "../index.html" > D:YAML 0.5 documentation< / a > » < / li >
2011-08-16 12:53:13 +00:00
< / ul >
< / div >
< div class = "footer" >
2014-05-19 17:54:48 +00:00
© Copyright 2011-2014, Ferdinand Majerech. Based on PyYAML http://www.pyyaml.org by Kirill Simonov.
2014-08-06 15:13:54 +00:00
Last updated on Aug 06, 2014.
2014-08-01 01:00:40 +00:00
Created using < a href = "http://sphinx-doc.org/" > Sphinx< / a > 1.2.2.
2011-08-16 12:53:13 +00:00
< / div >
< / body >
< / html >