Skip to content

SDLang serialization support for vibe.data.serialization

Notifications You must be signed in to change notification settings

vibe-d/vibe-sdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SDLang serialization support for vibe.data.serialization

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages