SDLang-D icon indicating copy to clipboard operation
SDLang-D copied to clipboard

[docs] SDL format needs to be described

Open thedeemon opened this issue 9 years ago • 6 comments

Neither official SDL site nor its mirror are working anymore, so SDL format itself is a mystery now.

thedeemon avatar Sep 22 '15 09:09 thedeemon

SDL was already a mystery:)

marler8997 avatar Sep 22 '15 10:09 marler8997

I've now mirrored the site here (luckily grabbed from when web.archive.org was still serving a mirror): http://semitwist.com/sdl-mirror/Home.html

The main language description is on this page: http://semitwist.com/sdl-mirror/Language+Guide.html

I'm leaving this ticket open because SDLang-D should still provide a documented spec on it's own.

Abscissa avatar Sep 23 '15 18:09 Abscissa

There's also now a description here: http://sdlang.org/

But again, a more formal spec is still needed.

Abscissa avatar Feb 07 '16 19:02 Abscissa

Aren't parentesys on blank line accepted? Why? I put them wrong every single time.

trikko avatar Jun 08 '16 15:06 trikko

On 06/08/2016 11:58 AM, Andrea Fontana wrote:

Aren't parentesys on blank line accepted? Why? I put them wrong every single time.

Despite what the use of curly braces may suggest, SDLang is a newline-terminated language, not a semicolon-terminated one. So the newline ends the tag. Additionally SDLang supports anonymous tags, with no name. Therefore, this:

foo { bar }

Is two tags:

  1. "foo" tag with no children.
  2. An unnamed anonymous tag with one child, "bar".

As with most newline-terminated languages, there IS a line-continuation operator:

foo
{ bar }

That makes the parser ignore the newline and treat it as:

foo { bar }

Abscissa avatar Jun 08 '16 16:06 Abscissa

Come to think of it, that's something that would be important to include in an SDLang FAQ or something (note to self).

Abscissa avatar Jun 08 '16 16:06 Abscissa