SDLang-D
SDLang-D copied to clipboard
[docs] SDL format needs to be described
Neither official SDL site nor its mirror are working anymore, so SDL format itself is a mystery now.
SDL was already a mystery:)
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.
There's also now a description here: http://sdlang.org/
But again, a more formal spec is still needed.
Aren't parentesys on blank line accepted? Why? I put them wrong every single time.
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:
- "foo" tag with no children.
- 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 }
Come to think of it, that's something that would be important to include in an SDLang FAQ or something (note to self).