SDLang
Filename extension
.sdl
Type of formatData interchange
Standardhttps://github.com/dlang-community/SDLang-D/wiki/Language-Guide
Open format?Yes
Websitesdlang.org

Simple Declarative Language (SDLang) is a human-readable text file format comparable to JSON and XML. It has the same structure as XML: It nests tags containing attributes and values. Tags can also have namespaces just like in XML. Unlike the aforementioned formats it preserves data types used by scripting languages and by compiled languages such as 64 bit integer, 32 bit integer, string, date , duration, boolean, float, double, etc.

It's used by Oracle, Bank of America, Ikayzo, DUB and JTest.[1][2]

It has implementations in D, TypeScript, Ruby, C#, F#, C++, Go, PHP, Haskell, Dart and Java.[3][1]

The following is an example from the SDLang-D language guide:[4]

folder "myFiles" color="yellow" protection=on {
    folder "my images" {
        file "myHouse.jpg" color=true date=2005/11/05
        file "myCar.jpg" color=false date=2002/01/05
    }
    folder "my documents" {
        document "resume.pdf"
    }
}

References

edit
  1. ^ a b "SDLang - Simple Declarative Language". sdlang.org. Retrieved 2024-11-16.
  2. ^ "dub.json / dub.sdl recipes - DUB Documentation". dub.pm. Retrieved 2024-11-16.
  3. ^ "Sdlang Initiative". GitHub. Retrieved 2024-11-16.
  4. ^ "Language Guide". GitHub. Retrieved 2024-11-16.