GithubHelp home page GithubHelp logo

isabella232 / mir-yaml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from libmir/mir-yaml

0.0 0.0 0.0 6.08 MB

YAML parser and emitter for the D programming language

Home Page: https://github.com/libmir/mir-yaml/tree/master/docs

License: Boost Software License 1.0

D 99.52% Meson 0.48%

mir-yaml's Introduction

D:YAML - Mir Fork

Build Status Circle CI 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.

Mir specific Features

  • Integration with Mir serialisation engine. See also the example.
  • Precise number printing (Ryu) and parsing (required by YAML spec).
  • Support for Arbitrary timestamp precision (required by YAML spec).
  • Support for Timestamp (Mir), YearMonthDay (Mir), Date (Mir and Phobos), DateTime, SysTime.
  • Node.mapping and Node.sequence are full featured Mir slices.

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 in the in the docs directory.

API documentation is available here.

Credits

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

mir-yaml's People

Contributors

9il avatar bbasile avatar burner avatar carlor avatar coldencullen avatar dlang-bot avatar forbjok avatar geod24 avatar herringway avatar japplegame avatar jmdavis avatar john-colvin avatar kiith-sa avatar kubo39 avatar majiang avatar martinnowak avatar mihails-strasuns-sociomantic avatar mpevnev avatar petarkirov avatar russel avatar soarqin avatar stefanhepp avatar tom-tan avatar wilzbach avatar ximion avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.