vibe-sdlang 1.0.0-alpha.2

SDLang serialization support for vibe.d


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

dub.json
dub.sdl

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());
}

Authors:Sönke Ludwig

Dependencies:vibe-d:data, sdlang-d

Versions:
1.0.0-alpha.2 2016-Aug-30
1.0.0-alpha.1 2016-Aug-25
~master 2016-Aug-30
Show all 3 versions
Stats:

statistics are temporarily disabled.