User:Igagis/STOB

STOB is a minimalistic general purpose markup language. STOB was proposed by Ivan Gagis in July 2012. The name of the language is an abbreviation from "STring OBjects".

Syntax
Here are the basics of the language syntax, those are very simple:
 * The only kind of objects present in STOB is string.
 * Strings should be enclosed in double quotes if they contain spaces or other reserved characters.
 * String can optionally have arbitrary number of child strings specified in curly brackets following the string.

STOB does not have concept of Attributes unlike other markup languages such as XML or JSON. Instead, attributes (or properties) can be represented as a child string with only one subchild (see example below).

Example
"String object" AnotherStringObject "String with children"{ "child 1" Child2 "child three"{ sub_child_1 "Subchild two" Property1 {Value1} "Property two" {"Value 2"} //comment /* multi-line comment */ "Escape sequences \" \n \r \t \\ \/"        "Multi-line string"    } }