Simple Declarative Language provides an easy way to describe lists,
maps, and trees of typed data in a compact, easy to read representation.
The simple and intuitive API allows you to read, write, and access all
the datastructures using a single class. For property files,
configuration files, logs, and simple serialization requirements, SDL
provides a compelling alternative to XML and Properties files.
Implementations are available for Java and .NET; a port to C++ is in the
works, with more languages on the way.
The SDL class (SDLUtil in C#) offers a number of useful convenience methods.
// Parse an SDL literal and get the value
Calendar c = (Calendar)SDL.value("1995/12/05 12:30:23.234-PST");
// Parse a list of values
List stuff = SDL.list("23 true 05:23:24 `hello` 34.12bd");
// Parse a map of attributes
Map map = SDL.map("name=`Jose` height=1.8 smoker=false");
The beef of the API is in the Tag and SDL classes. In
fact, you can parse, modify and write out SDL code using nothing but the