项目作者: dlang-community

项目描述 :
YAML parser and emitter for the D programming language
高级语言: D
项目地址: git://github.com/dlang-community/D-YAML.git
创建时间: 2011-08-16T16:08:27Z
项目社区:https://github.com/dlang-community/D-YAML

开源协议:Boost Software License 1.0

下载


D:YAML

codecov
code.dlang.org

Introduction

D:YAML is an open source YAML parser and emitter library for the D programming language.
It is almost compliant to the YAML 1.1 specification.
D:YAML is based on PyYAML created by Kirill Simonov.

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 Getting Started tutorial.

Features

  • Easy to use, high level API and detailed debugging messages.
  • Detailed API documentation and tutorials.
  • Code examples.
  • Supports all YAML 1.1 constructs. All examples from the YAML 1.1
    specification are parsed correctly.
  • 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 (plain ASCII also works as it is a subset of UTF-8).
  • Support for both block (Python-like, based on indentation) and flow
    (JSON-like, based on bracing) constructs.
  • Support for YAML anchors and aliases.
  • Support for default values in mappings.
  • Support for custom tags (data types), and implicit tag resolution
    for custom scalar tags.
  • 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 code in YAML.
  • Remembers YAML style information between loading and dumping if
    possible.
  • 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.

Directory structure

Directory Contents
./ This README, utility scripts.
./docs Documentation.
./source Source code.
./examples/ Example projects using D:YAML.
./test Unittest data.

Installing and tutorial

See the Getting Started.
Tutorial and other tutorials that can be found at the GitHub pages or in the docs directory of the repository.

API documentation is available here.

License

D:YAML is released under the terms of the Boost Software
License 1.0
. 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
distributions, you have to preserve the license headers in the source
code and the accompanying license file.

Full text of the license can be found in file LICENSE_1_0.txt and is
also displayed here:

  1. Boost Software License - Version 1.0 - August 17th, 2003
  2. Permission is hereby granted, free of charge, to any person or organization
  3. obtaining a copy of the software and accompanying documentation covered by
  4. this license (the "Software") to use, reproduce, display, distribute,
  5. execute, and transmit the Software, and to prepare derivative works of the
  6. Software, and to permit third-parties to whom the Software is furnished to
  7. do so, all subject to the following:
  8. The copyright notices in the Software and this entire statement, including
  9. the above license grant, this restriction and the following disclaimer,
  10. must be included in all copies of the Software, in whole or in part, and
  11. all derivative works of the Software, unless such copies or derivative
  12. works are solely in the form of machine-executable object code generated by
  13. a source language processor.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
  17. SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
  18. FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
  19. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. DEALINGS IN THE SOFTWARE.

Credits

D:YAML was created by Ferdinand Majerech aka Kiith-Sa and is handled by the dlang-community organization since 2017.
Parts of code based on PyYAML created by Kirill Simonov.