You can edit almost every page by Creating an account and confirming your email.

SDLang

From EverybodyWiki Bios & Wiki


SDLang
Filename extension.sdl
Type of formatData interchange
Standardhttps://github.com/dlang-community/SDLang-D/wiki/Language-Guide
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

  1. 1.0 1.1 "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.


This article "SDLang" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:SDLang. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.