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