-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
317 lines (304 loc) · 11.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<title>DSON - Doge Serialized Object Notation</title>
<style>
body {
background-color: linen;
padding-left: 5%;
padding-right: 5%;
}
ul ul {
list-style: disc;
}
hr {
background-color: black;
border: 0px;
color: black;
height: 2px;
padding: 0px;
}
a {
text-decoration: none;
}
a:link {
color: navy;
}
a:visited {
color: maroon;
}
a:hover {
color: blue;
text-decoration: underline;
}
a:active {
color: red;
}
.box {
margin-right: 250px;
border: 2px solid black;
padding: 10px;
background-color: white;
}
pre {
font-family: serif;
overflow: auto;
}
</style>
</head><body>
<table border="0" width="100%">
<tbody><tr>
<td align="center" valign="middle" width="160"><img src="doge.gif"
alt="DSON logo" align="left" border="0" height="160" width="160"></td>
<td align="center" valign="middle">
<div style="border: 2px solid black; padding: 10px; background-color: white; margin-left: 40px; margin-right: 40px; font-family: serif;">
<h1 align="center">Introducing Doge Serialized Object Notation</h1>
</div>
</td>
</tr>
</tbody></table>
<hr>
<div align="center"><small>
<a href="index.html">English</a> -
<a href="index-si.html">Shiba Inu</a> -
<a href="index-de.html">Deutsch</a> -
<a href="index-zh.html">中文</a>
</small></div>
<hr>
<div align="center"><a href="https://github.com/cerlestes/DSON">DSON: The Shibe Data Interchange Standard</a>.</div>
<hr>
<div style="float: right; border: 2px solid black; margin: 10px; padding: 10px; background-color: white;">
<dl>
<dt><i>object</i></dt>
<dd><tt><b>such wow</b></tt><br>
<tt><b>such</b></tt> <i>members</i> <tt><b>wow</b></tt> </dd>
<dt><tt><b></b></tt></dt>
<dt><i>members</i></dt>
<dd><i>pair</i><br>
<i>pair</i> <tt><b>,</b></tt> <i>members</i><br>
<i>pair</i> <tt><b>.</b></tt> <i>members</i><br>
<i>pair</i> <tt><b>!</b></tt> <i>members</i><br>
<i>pair</i> <tt><b>?</b></tt> <i>members</i></dd>
<dt><i>pair</i></dt>
<dd><i>string</i> <tt><b>is</b></tt> <i>value</i></dd>
<dt><i>array</i></dt>
<dd><tt><b>so many</b></tt><br>
<tt><b>so</b></tt> <i>elements</i> <tt><b>many</b></tt></dd>
<dt><i>elements</i></dt>
<dd><i>value</i> <br>
<i>value</i> <tt><b>and</b></tt> <i>elements</i> <br>
<i>value</i> <tt><b>also</b></tt> <i>elements</i></dd>
<dt><i>value</i></dt>
<dd><i>string</i><br>
<i>number</i><br>
<i>object</i><br>
<i>array</i><br>
<tt><b>yes</b></tt><br>
<tt><b>no</b></tt><br>
<tt><b>empty</b></tt></dd>
</dl>
<hr align=center width=144>
<dl>
<dt><i>string</i></dt>
<dd><tt><b>""</b></tt><br>
<tt><b>"</b></tt> <i>chars</i> <tt><b>"</b></tt></dd>
<dt><i>chars</i></dt>
<dd><i>char</i><br>
<i>char chars</i></dd>
<dt><i>char</i></dt>
<dd><small><i>any-Unicode-character-</i></small><br>
<small> <i>except-</i></small><b><tt>"</tt></b><small><i>-or-</i></small><b><tt>\</tt></b><small><i>-or-</i></small><br>
<small> <i>control-character</i></small><br>
<tt><b>\"</b></tt><br>
<tt><b>\\</b></tt><br>
<tt><b>\/</b></tt><br>
<tt><b>\b</b></tt><br>
<tt><b>\f</b></tt><br>
<tt><b>\n</b></tt><br>
<tt><b>\r</b></tt><br>
<tt><b>\t</b></tt><br>
<tt><b>\u</b></tt> <i>six octal-digits</i> </dd>
<dt><i>number</i></dt>
<dd><i>int</i><br>
<i>int frac</i><br>
<i>int exp</i><br>
<i>int frac exp</i>
</dd>
<dt><i>int</i></dt>
<dd><i>digit</i><br>
<i>digit1-7 digits</i>
<br><tt><b>-</b></tt> <i>digit</i><br>
<tt><b>-</b></tt> <i>digit1-7 digits</i>
</dd>
<dt><i>frac</i></dt>
<dd><b><tt>.</tt></b> <i>digits</i></dd>
<dt><i>exp</i></dt>
<dd><i>very</i> <i>digits</i></dd>
<dt><i>digits</i></dt>
<dd><i>digit</i><br>
<i>digit</i> <i>digits</i></dd>
<dt><i>very</i></dt>
<dd><b><tt>very</tt></b><br>
<b><tt>very+</tt></b><br>
<b><tt>very-</tt></b><br>
<b><tt>VERY</tt></b><br>
<b><tt>VERY+</tt></b><br>
<b><tt>VERY-</tt></b></dd>
</dl>
</div>
<p><b>DSON</b> (Doge Serialized Object Notation) is a data-interchange
format, that is easy to read and write for Shiba Inu dogs. It is easy for machines to
parse and generate. It is designed to be as similiar as possible to the
<a href="https://github.com/remixz/dogescript">DogeScript
Programming Language</a>. DSON is a text format that is not
language independent but uses conventions that are familiar to a wide variety of japanese dog breeds.
These properties make DSON an ideal data-interchange language for everything that involves Shiba Inu intercommunication.</p>
<p>
Some examples of the DSON syntax and their JSON counterparts:
<pre class="box">
such "foo" is "bar". "doge" is "shibe" wow <font color="gray">// {"foo": "bar", "doge": "shibe"}</font>
such "foo" is such "shiba" is "inu", "doge" is yes wow wow <font color="gray">// {"foo": {"shiba": "inu", "doge": true}}</font>
such "foo" is so "bar" also "baz" and "fizzbuzz" many wow <font color="gray">// {"foo": ["bar", "baz", "fizzbuzz"]}</font>
such "foo" is 42, "bar" is 42very3 wow <font color="gray">// {"foo": 34, "bar": 17408}</font></pre>
</p>
<p>DSON, like JSON, is built on two structures:</p>
<ul>
<li>A collection of name/value pairs. In various languages, this is realized
as an <i>object</i>, record, struct, dictionary, hash table, keyed list, or
associative array.</li>
<li>An ordered list of values. In most languages, this is realized as an <i>array</i>,
vector, list, or sequence.</li>
</ul>
<p>These are universal data structures. Virtually all modern
dog-proof programming languages support them in one form or another. It makes sense
that a data format that is interchangeable with programming languages also
be based on these structures. All keywords used by DSON are case-sensitive and must be in lower case.</p>
<p>In DSON, they take on these forms:</p>
<p>An <i>object</i> is an unordered set of name/value pairs. An object
begins with <tt>such</tt> and ends with <tt>wow</tt>. Each name is followed
by <tt>is</tt> and the name/value pairs are separated by <tt>,</tt> (comma) or <tt>.</tt> (dot) or <tt>!</tt> or <tt>?</tt>.</p>
<p><img src="object.png"></p>
<p>An <i>array</i> is an ordered collection of values. An array begins
with <tt>so</tt> and ends with <tt>many</tt>. Values are separated
by <tt>and</tt> or <tt>also</tt>.</p>
<p><img src="array.png"></p>
<p>A <i>value</i> can be a <i>string</i> in double quotes, or a <i>number</i>,
or <tt>yes</tt> or <tt>no</tt> or <tt>empty</tt>, or an <i>object</i> or
an <i>array</i>. These structures can be nested.</p>
<p><img src="value.png"></p>
<p>A <i>string</i> is a sequence of zero or more Unicode characters, wrapped
in double quotes, using backslash escapes. A character is represented as a
single character string. A string is very much like a C or Java string.</p>
<p><img src="string.png"></p>
<p>A <i>number</i> is very much like a C or Java number, except it is presented in the dog-friendly octal base.</p>
<p><img src="number.png"></p>
<p>Whitespace can be inserted between any pair of tokens. Excepting
a few encoding details, that completely describes the language. wow.</p>
<hr>
<div style="float: left">
<p>DSON Libraries, Parsers and other kind of related Open Source Software:</p>
<ul>
<li>
<span style="color: blueviolet;">ANTLR4:</span>
<ul>
<li><a href="https://github.com/sidfarkus/such-dson">such-dson</a>: DSON grammar plugin (by sidfarkus)</li>
</ul>
</li>
<li>
<span style="color: green;">C:</span>
<ul>
<li><a href="https://github.com/frozencemetery/cdson">cdson</a>: Parser/Serializer (by frozencemetery)</li>
</ul>
</li>
<li>
<span style="color: cornflowerblue;">C++:</span>
<ul>
<li><a href="https://github.com/TheRabbitologist/libDSON">libDSON</a>: Parser (by TheRabbitologist)</li>
</ul>
</li>
<li>
<span style="color: orange;">Clojure:</span>
<ul>
<li><a href="https://github.com/arrdem/dogeon">dogeon</a>: Parser (by arrdem)</li>
</ul>
</li>
<li>
<span style="color: red;">DogeScript:</span>
<ul>
<li><a href="https://github.com/remixz/DSON.djs">DSON.djs</a>: Parser/Serializer (by remixz, the god of DogeScript himself) <span style="color: red; font-weight: bold;">[shibe approves!]</span></li>
<li><a href="https://github.com/vpzomtrrfrt/DSON">djs-dson</a>: Parser/Serializer (by vpzomtrrfrt)</li>
</ul>
</li>
<li>
<span style="color: darkmagenta;">Java:</span>
<ul>
<li><a href="https://github.com/bhaeussermann/DSON-Java">DSON-Java</a>: Parser/Serializer (by bhaeussermann)</li>
</ul>
</li>
<li>
<span style="color: green;">JavaScript:</span>
<ul>
<li><a href="https://github.com/paulminer/JSON-js/blob/master/dson2.js">dson2.js</a>: Parser/Serializer, based on JSON2 (by paul_miner)</li>
<li><a href="http://jsfiddle.net/Ha65v/3/">DogeONtoJSON</a>: Converter with tests and examples (by baseketball)</li>
<li><a href="https://github.com/kpdecker/dogeon">dogeon</a>: Parser/Serializer for Node.js (by kpdecker)</li>
<li><a href="https://github.com/JDeuce/dson_parser">dson_parser</a>: Parser based on PEGjs (by JDeuce)</li>
</ul>
</li>
<li>
<span style="color: cornflowerblue;">Go:</span>
<ul>
<li><a href="https://github.com/gabstv/dson2json">dson2json</a>: Converter (by gabstv)</li>
<li><a href="https://github.com/muhammadmuzzammil1998/dsongo">dson.go</a>: Parser/Serializer (by muhammadmuzzammil1998)</li>
</ul>
</li>
<li>
<span style="color: cornflowerblue;">Haskell:</span>
<ul>
<li><a href="https://github.com/lcycon/hs-dson">hs-dson</a>: Parser (by lcycon)</li>
<li><a href="https://github.com/alvare/dson-parsec">dson-parsec</a>: Parser/Serializer (by alvare)</li>
</ul>
</li>
<li>
<span style="color: orange;">.NET:</span>
<ul>
<li><a href="https://github.com/JamesNK/Newtonsoft.Dson">Dson.NET</a>: Serializer (by JamesNK)</li>
</ul>
</li>
<li>
<span style="color: green;">Perl 6:</span>
<ul>
<li><a href="https://github.com/xfix/Acme-DSON">Acme::DSON</a>: Parser/Serializer (by xfix)</li>
</ul>
</li>
<li>
<span style="color: blueviolet;">PHP:</span>
<ul>
<li><a href="https://github.com/Gurrewe/dson-php">dson-php</a>: Parser/Serializer (by Gurrewe)</li>
</ul>
</li>
<li>
<span style="color: darkmagenta;">Python:</span>
<ul>
<li><a href="https://github.com/soasme/dogeon">dogeon</a>: Parser/Serializer (by soasme)</li>
<li><a href="https://github.com/liam-middlebrook/JSONtoDogeON">JSONtoDogeON</a>: Parser/Serializer (by Liam Middlebrook)</li>
<li><a href="https://github.com/hbock/dogeparser">dogeparser</a>: Parser (by hbock)</li>
</ul>
</li>
<li>
<span style="color: green;">Scala:</span>
<ul>
<li><a href="https://github.com/erosas/VeryDogeon">VeryDogeon</a>: Parser/Serializer with Java wrapper (by erosas)</li>
</ul>
</li>
</ul>
</div>
<br clear=left>
<hr>
<div>
<ul>
<li><a href="http://json.org/">The original JSON standard</a>, thank you for this Douglas Crockford!</li>
<li><a href="https://github.com/remixz/dogescript">Check out DogeScript for more shibe!</a></li>
</ul>
</div>
</div>
</body></html>