Updated README.
This commit is contained in:
parent
564dfdae80
commit
aa97d9cc6a
|
@ -4,7 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" />
|
||||||
<title>D:YAML 0.4</title>
|
<title>D:YAML 0.5</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -338,9 +338,11 @@ ul.auto-toc {
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="document" id="d-yaml-0-4">
|
<div class="document" id="d-yaml-0-5">
|
||||||
<h1 class="title">D:YAML 0.4</h1>
|
<h1 class="title">D:YAML 0.5</h1>
|
||||||
|
|
||||||
|
<p><strong>Note</strong>: D:YAML 0.5 brings some <strong>breaking changes</strong>. See the
|
||||||
|
<a class="reference external" href="https://github.com/kiith-sa/D-YAML/blob/master/CHANGES.rst">changelog</a>.</p>
|
||||||
<div class="section" id="introduction">
|
<div class="section" id="introduction">
|
||||||
<h1>Introduction</h1>
|
<h1>Introduction</h1>
|
||||||
<p>D:YAML is an open source YAML parser and emitter library for the D programming
|
<p>D:YAML is an open source YAML parser and emitter library for the D programming
|
||||||
|
@ -379,6 +381,7 @@ scalar tags.</li>
|
||||||
the exception of <tt class="docutils literal">tag:yaml.org,2002:yaml</tt>, which is used to represent YAML
|
the exception of <tt class="docutils literal">tag:yaml.org,2002:yaml</tt>, which is used to represent YAML
|
||||||
code in YAML.</li>
|
code in YAML.</li>
|
||||||
<li>Remembers YAML style information between loading and dumping if possible.</li>
|
<li>Remembers YAML style information between loading and dumping if possible.</li>
|
||||||
|
<li>Reuses input memory and uses slices to minimize memory allocations.</li>
|
||||||
<li>There is no support for recursive data structures.
|
<li>There is no support for recursive data structures.
|
||||||
There are no plans to implement this at the moment.</li>
|
There are no plans to implement this at the moment.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
50
README.rst
50
README.rst
|
@ -1,25 +1,28 @@
|
||||||
==========
|
==========
|
||||||
D:YAML 0.4
|
D:YAML 0.5
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
**Note**: D:YAML 0.5 brings some **breaking changes**. See the
|
||||||
|
`changelog <https://github.com/kiith-sa/D-YAML/blob/master/CHANGES.rst>`_.
|
||||||
|
|
||||||
------------
|
------------
|
||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
|
|
||||||
D:YAML is an open source YAML parser and emitter library for the D programming
|
D:YAML is an open source YAML parser and emitter library for the D programming
|
||||||
language. It is
|
language. It is
|
||||||
(`almost <https://github.com/kiith-sa/D-YAML/wiki/Differences-between-D:YAML-and-the-YAML-specification>`_)
|
(`almost <https://github.com/kiith-sa/D-YAML/wiki/Differences-between-D:YAML-and-the-YAML-specification>`_)
|
||||||
compliant to the YAML 1.1 specification. D:YAML is based on
|
compliant to the YAML 1.1 specification. D:YAML is based on
|
||||||
`PyYAML <http://www.pyyaml.org>`_ created by Kirill Simonov. It has no external
|
`PyYAML <http://www.pyyaml.org>`_ created by Kirill Simonov. It has no external
|
||||||
dependencies, it only needs a D compiler and Phobos (standard library). It is
|
dependencies, it only needs a D compiler and Phobos (standard library). It is
|
||||||
written in D2 and there are no plans for D1 support.
|
written in D2 and there are no plans for D1 support.
|
||||||
|
|
||||||
D:YAML is designed to be easy to use while supporting the full feature set of
|
D:YAML is designed to be easy to use while supporting the full feature set of
|
||||||
YAML. To start using it in your project, see the
|
YAML. To start using it in your project, see the
|
||||||
`Getting Started <https://github.com/kiith-sa/D-YAML/wiki/Getting-Started>`_
|
`Getting Started <https://github.com/kiith-sa/D-YAML/wiki/Getting-Started>`_
|
||||||
tutorial.
|
tutorial.
|
||||||
|
|
||||||
D:YAML is still a work in progress. Its API is not stable and there might be
|
D:YAML is still a work in progress. Its API is not stable and there might be
|
||||||
compatibility breaking changes.
|
compatibility breaking changes.
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,19 +37,20 @@ Features
|
||||||
* Supports all YAML 1.1 constructs. All examples from the YAML 1.1 specification
|
* Supports all YAML 1.1 constructs. All examples from the YAML 1.1 specification
|
||||||
are parsed correctly.
|
are parsed correctly.
|
||||||
* Reads from and writes from/to YAML files or in-memory buffers.
|
* Reads from and writes from/to YAML files or in-memory buffers.
|
||||||
* UTF-8, UTF-16 and UTF-32 encodings are supported, both big and little endian
|
* UTF-8, UTF-16 and UTF-32 encodings are supported, both big and little endian
|
||||||
(plain ASCII also works as it is a subset of UTF-8).
|
(plain ASCII also works as it is a subset of UTF-8).
|
||||||
* Support for both block (Python-like, based on indentation) and flow
|
* Support for both block (Python-like, based on indentation) and flow
|
||||||
(JSON-like, based on bracing) constructs.
|
(JSON-like, based on bracing) constructs.
|
||||||
* Support for YAML anchors and aliases.
|
* Support for YAML anchors and aliases.
|
||||||
* Support for default values in mappings.
|
* Support for default values in mappings.
|
||||||
* Support for custom tags (data types), and implicit tag resolution for custom
|
* Support for custom tags (data types), and implicit tag resolution for custom
|
||||||
scalar tags.
|
scalar tags.
|
||||||
* All tags (data types) described at http://yaml.org/type/ are supported, with
|
* All tags (data types) described at http://yaml.org/type/ are supported, with
|
||||||
the exception of ``tag:yaml.org,2002:yaml``, which is used to represent YAML
|
the exception of ``tag:yaml.org,2002:yaml``, which is used to represent YAML
|
||||||
code in YAML.
|
code in YAML.
|
||||||
* Remembers YAML style information between loading and dumping if possible.
|
* Remembers YAML style information between loading and dumping if possible.
|
||||||
* There is no support for recursive data structures.
|
* Reuses input memory and uses slices to minimize memory allocations.
|
||||||
|
* There is no support for recursive data structures.
|
||||||
There are no plans to implement this at the moment.
|
There are no plans to implement this at the moment.
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,9 +74,9 @@ Directory Contents
|
||||||
Installing and tutorial
|
Installing and tutorial
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
See the
|
See the
|
||||||
`Getting Started <https://github.com/kiith-sa/D-YAML/wiki/Getting-Started>`_
|
`Getting Started <https://github.com/kiith-sa/D-YAML/wiki/Getting-Started>`_
|
||||||
tutorial and other tutorials that can be found at the
|
tutorial and other tutorials that can be found at the
|
||||||
`GitHub wiki <https://github.com/kiith-sa/D-YAML/wiki>`_
|
`GitHub wiki <https://github.com/kiith-sa/D-YAML/wiki>`_
|
||||||
and in the ``doc/html/tutorials/`` directory in the package.
|
and in the ``doc/html/tutorials/`` directory in the package.
|
||||||
|
|
||||||
|
@ -81,11 +85,11 @@ and in the ``doc/html/tutorials/`` directory in the package.
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
D:YAML is released under the terms of the
|
D:YAML is released under the terms of the
|
||||||
`Boost Software License 1.0 <http://www.boost.org/LICENSE_1_0.txt>`_.
|
`Boost Software License 1.0 <http://www.boost.org/LICENSE_1_0.txt>`_.
|
||||||
This license allows you to use the source code in your own projects, open source
|
This license allows you to use the source code in your own projects, open source
|
||||||
or proprietary, and to modify it to suit your needs. However, in source
|
or proprietary, and to modify it to suit your needs. However, in source
|
||||||
distributions, you have to preserve the license headers in the source code and
|
distributions, you have to preserve the license headers in the source code and
|
||||||
the accompanying license file.
|
the accompanying license file.
|
||||||
|
|
||||||
Full text of the license can be found in file ``LICENSE_1_0.txt`` and is also
|
Full text of the license can be found in file ``LICENSE_1_0.txt`` and is also
|
||||||
|
@ -124,7 +128,7 @@ D:YAML was created by Ferdinand Majerech aka Kiith-Sa kiithsacmp[AT]gmail.com .
|
||||||
|
|
||||||
Parts of code based on `PyYAML <http://www.pyyaml.org>`_ created by Kirill Simonov.
|
Parts of code based on `PyYAML <http://www.pyyaml.org>`_ created by Kirill Simonov.
|
||||||
|
|
||||||
D:YAML uses a modified version of the
|
D:YAML uses a modified version of the
|
||||||
`CDC build script <http://www.dsource.org/projects/cdc>`_.
|
`CDC build script <http://www.dsource.org/projects/cdc>`_.
|
||||||
|
|
||||||
D:YAML was created using Vim and DMD on Debian and Ubuntu Linux as a YAML parsing
|
D:YAML was created using Vim and DMD on Debian and Ubuntu Linux as a YAML parsing
|
||||||
|
|
Loading…
Reference in a new issue