Description

SDLang serialization support for vibe.d

Package Information

Version1.0.0-alpha.2 (2016-Aug-30)
Repository https://github.com/vibe-d/vibe-sdl
Licensemit
CopyrightCopyright © 2016, Sönke Ludwig
AuthorsSönke Ludwig
Registered bySönke Ludwig
Dependencies

vibe-d:data

sdlang-d

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

vibe.d SDLang serialization

This package provides generic vibe.data.serialization based serialization support for the SDLang data format. It uses sdlang-d to parse and generate the SDLang format.

Build Status

Example:

import vibe.data.sdl : serializeSDL;
import sdlang.ast : Tag;
import std.stdio : writeln;

struct Ticket {
	int id;
	string title;
	string[] tags;
}

void main()
{
	Ticket[] tickets = [
		Ticket(0, "foo", ["defect", "critical"]),
		Ticket(1, "bar", ["enhancement"])
	];

	Tag sdl = serializeSDL(tickets);
	writeln(sdl.toSDLDocument());
}

Available versions

1.0.0-alpha.2 1.0.0-alpha.1 ~master