Data Formats |
||||||||||||||||||||||||||||||||
|
|
If you want to include the quotation mark into a string, include the backslash symbol and the quotation mark, if you want to include the backslash symbol into a quoted string, include 2 backslash symbols.
You can use the \r symbol combination to include the Return symbol into a string, you can use the \n symbol combination to include the Line Feed symbol into a string, and your can use the \e symbol combination to include the system-independent End-Of-Line symbol(s) into a string.
You can use the \t symbol combination to include the Tab symbol into a string.
You can use the \nnn symbol combination to include any symbol into a string, if nnn is a 3-digit decimal number equal to the code of the desired symbol.
An array element can be either a string, or an array, or a dictionary.
Any number of spaces, tabulation symbols, and/or line breaks (end-of-line symbols) can be placed between a parentheses and an element, and between an element and a comma sign.
A Dictionary value can be either a string, or an array, or a dictionary, so the format definition is recursive.
A dictionary is a list of key-value pairs. Each key should be unique, and the key names are case-sensitive. The equal sign (=) is placed between the key and its value, end the semicolon symbol (;) is placed after a value. The set of key-value pairs is enclosed into the curvy brackets. Each key is a string.
The value element in any key-value pair can be a string, an array, and/or a dictionary.
Any number of spaces, tabulation symbols, and/or line breaks (end-of-line symbols) can be placed between a bracket and a pair, around the equal sign, and around the semicolon sign.
Below is the formal syntax for the Dictionary and Array formats:
a-symbol ::= A .. Z | a .. z | 0 .. 9
atom ::= 1*a-symbol
s-symbol ::= any printable symbol except " and \ |
\\ | \" | \r | \n | \e | \nnn
string ::= " 1*s-symbol " | atom
array ::= ( [object [, object ...]] )
dictionary ::= { [string = object ; [string = object ; ...]] }
object ::= string | array | dictionary
|