-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1160 lines (1157 loc) · 54.8 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html>
<head>
<meta name="generator" content="JSDoc 3.3.0-beta1">
<meta charset="utf-8">
<title>jetson 0.0.3 » Home</title>
<link rel="stylesheet" href="//brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="//brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="//brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
<link href="css/baseline.css" rel="stylesheet">
</head>
<body onload="prettyPrint()">
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">jetson 0.<wbr>0.<wbr>3</a>
</div>
</div>
</nav>
<div id="jsdoc-body-container">
<div id="jsdoc-content">
<div id="jsdoc-content-container">
<div id="jsdoc-banner" role="banner">
</div>
<div id="jsdoc-main" role="main">
<header class="page-header">
<h1>
jetson 0.0.3
</h1>
</header>
<article>
<h1>Jetson</h1>
<p>Jetson is a ECMA6 compatible superset of JSON</p>
<h1>Additions to JSON:</h1>
<ul>
<li>Multiline comments <code>/* test */</code>
</li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings">Template strings from ECMA6</a>
<ul>
<li>Template strings are only used for multiline support, interpolation is not supported currently</li>
</ul>
</li>
</ul>
<h1>Rail road diagrams</h1>
<style>
svg.railroad-diagram {
background-color: hsl(30, 20%, 95%);
}
svg.railroad-diagram path {
stroke-width: 3;
stroke: black;
fill: rgba(0, 0, 0, 0);
}
svg.railroad-diagram text {
font: bold 14px monospace;
text-anchor: middle;
}
svg.railroad-diagram text.label {
text-anchor: start;
}
svg.railroad-diagram text.comment {
font: italic 12px monospace;
}
svg.railroad-diagram rect {
stroke-width: 3;
stroke: black;
fill: hsl(120, 100%, 90%);
}
</style>
<h3>Value</h3>
<svg class="railroad-diagram" width="261" height="272">
<g transform="translate(.5 .5)">
<path d="M 20 111 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 121h0"></path>
<path d="M220 121h0"></path>
<path d="M40 121a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 91h44"></path>
<path d="M156 91h44"></path>
<rect x="104" y="80" width="52" height="22" rx="10" ry="10"></rect>
<text x="130" y="95">null</text>
</g>
<path d="M200 91a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<path d="M40 121a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 61h40"></path>
<path d="M160 61h40"></path>
<rect x="100" y="50" width="60" height="22" rx="10" ry="10"></rect>
<text x="130" y="65">false</text>
</g>
<path d="M200 61a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<path d="M40 121a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 31h44"></path>
<path d="M156 31h44"></path>
<rect x="104" y="20" width="52" height="22" rx="10" ry="10"></rect>
<text x="130" y="35">true</text>
</g>
<path d="M200 31a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
<path d="M40 121h20"></path>
<g>
<path d="M60 121h36"></path>
<path d="M164 121h36"></path>
<rect x="96" y="110" width="68" height="22"></rect>
<text x="130" y="125">string</text>
</g>
<path d="M200 121h20"></path>
<path d="M40 121a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 151h0"></path>
<path d="M200 151h0"></path>
<rect x="60" y="140" width="140" height="22"></rect>
<text x="130" y="155">template-string</text>
</g>
<path d="M200 151a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<path d="M40 121a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 181h36"></path>
<path d="M164 181h36"></path>
<rect x="96" y="170" width="68" height="22"></rect>
<text x="130" y="185">number</text>
</g>
<path d="M200 181a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
<path d="M40 121a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 211h40"></path>
<path d="M160 211h40"></path>
<rect x="100" y="200" width="60" height="22"></rect>
<text x="130" y="215">array</text>
</g>
<path d="M200 211a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
<path d="M40 121a10 10 0 0 1 10 10v100a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 241h36"></path>
<path d="M164 241h36"></path>
<rect x="96" y="230" width="68" height="22"></rect>
<text x="130" y="245">object</text>
</g>
<path d="M200 241a10 10 0 0 0 10 -10v-100a10 10 0 0 1 10 -10"></path>
</g>
<path d="M 220 121 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>Array</h3>
<svg class="railroad-diagram" width="297" height="102">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 41h10"></path>
<g>
<path d="M50 41h0"></path>
<path d="M78 41h0"></path>
<rect x="50" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="45">[</text>
</g>
<path d="M78 41h10"></path>
<g>
<path d="M88 41h0"></path>
<path d="M208 41h0"></path>
<path d="M88 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M108 21h80"></path>
</g>
<path d="M188 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M88 41h20"></path>
<g>
<path d="M108 41h0"></path>
<path d="M188 41h0"></path>
<path d="M108 41h10"></path>
<g>
<path d="M118 41h0"></path>
<path d="M178 41h0"></path>
<rect x="118" y="30" width="60" height="22"></rect>
<text x="148" y="45">value</text>
</g>
<path d="M178 41h10"></path>
<path d="M118 41a10 10 0 0 0 -10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M118 71h16"></path>
<path d="M162 71h16"></path>
<rect x="134" y="60" width="28" height="22" rx="10" ry="10"></rect>
<text x="148" y="75">,</text>
</g>
<path d="M178 71a10 10 0 0 0 10 -10v-10a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M188 41h20"></path>
</g>
<path d="M208 41h10"></path>
<g>
<path d="M218 41h0"></path>
<path d="M246 41h0"></path>
<rect x="218" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="232" y="45">]</text>
</g>
<path d="M246 41h10"></path>
<path d="M 256 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h4>Array with comments</h4>
<p>Jetson uses this syntax for Arrays instead of the usual shortened one above:</p>
<svg class="railroad-diagram" width="725" height="122">
<g transform="translate(.5 .5)">
<path d="M 20 41 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 51h10"></path>
<g>
<path d="M50 51h0"></path>
<path d="M78 51h0"></path>
<rect x="50" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="55">[</text>
</g>
<path d="M78 51h10"></path>
<g>
<path d="M88 51h0"></path>
<path d="M636 51h0"></path>
<path d="M88 51a10 10 0 0 0 10 -10v-9a10 10 0 0 1 10 -10"></path>
<g>
<path d="M108 22h508"></path>
</g>
<path d="M616 22a10 10 0 0 1 10 10v9a10 10 0 0 0 10 10"></path>
<path d="M88 51h20"></path>
<g>
<path d="M108 51h0"></path>
<path d="M616 51h0"></path>
<path d="M108 51h10"></path>
<g>
<path d="M118 51h0"></path>
<path d="M606 51h0"></path>
<g>
<path d="M118 51h0"></path>
<path d="M322 51h0"></path>
<path d="M118 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M138 31h164"></path>
</g>
<path d="M302 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M118 51h20"></path>
<g>
<path d="M138 51h0"></path>
<path d="M302 51h0"></path>
<rect x="138" y="40" width="164" height="22"></rect>
<text x="220" y="55">multi-line-comment</text>
</g>
<path d="M302 51h20"></path>
</g>
<path d="M322 51h10"></path>
<g>
<path d="M332 51h0"></path>
<path d="M392 51h0"></path>
<rect x="332" y="40" width="60" height="22"></rect>
<text x="362" y="55">value</text>
</g>
<path d="M392 51h10"></path>
<g>
<path d="M402 51h0"></path>
<path d="M606 51h0"></path>
<path d="M402 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M422 31h164"></path>
</g>
<path d="M586 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M402 51h20"></path>
<g>
<path d="M422 51h0"></path>
<path d="M586 51h0"></path>
<rect x="422" y="40" width="164" height="22"></rect>
<text x="504" y="55">multi-line-comment</text>
</g>
<path d="M586 51h20"></path>
</g>
</g>
<path d="M606 51h10"></path>
<path d="M118 51a10 10 0 0 0 -10 10v20a10 10 0 0 0 10 10"></path>
<g>
<path d="M118 91h16"></path>
<path d="M590 91h16"></path>
<g>
<path d="M134 91h0"></path>
<path d="M338 91h0"></path>
<path d="M134 91a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M154 71h164"></path>
</g>
<path d="M318 71a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M134 91h20"></path>
<g>
<path d="M154 91h0"></path>
<path d="M318 91h0"></path>
<rect x="154" y="80" width="164" height="22"></rect>
<text x="236" y="95">multi-line-comment</text>
</g>
<path d="M318 91h20"></path>
</g>
<path d="M338 91h10"></path>
<g>
<path d="M348 91h0"></path>
<path d="M376 91h0"></path>
<rect x="348" y="80" width="28" height="22" rx="10" ry="10"></rect>
<text x="362" y="95">,</text>
</g>
<path d="M376 91h10"></path>
<g>
<path d="M386 91h0"></path>
<path d="M590 91h0"></path>
<path d="M386 91a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M406 71h164"></path>
</g>
<path d="M570 71a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M386 91h20"></path>
<g>
<path d="M406 91h0"></path>
<path d="M570 91h0"></path>
<rect x="406" y="80" width="164" height="22"></rect>
<text x="488" y="95">multi-line-comment</text>
</g>
<path d="M570 91h20"></path>
</g>
</g>
<path d="M606 91a10 10 0 0 0 10 -10v-20a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M616 51h20"></path>
</g>
<path d="M636 51h10"></path>
<g>
<path d="M646 51h0"></path>
<path d="M674 51h0"></path>
<rect x="646" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="660" y="55">]</text>
</g>
<path d="M674 51h10"></path>
<path d="M 684 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>Object</h3>
<svg class="railroad-diagram" width="453" height="102">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 41h10"></path>
<g>
<path d="M50 41h0"></path>
<path d="M78 41h0"></path>
<rect x="50" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="45">{</text>
</g>
<path d="M78 41h10"></path>
<g>
<path d="M88 41h0"></path>
<path d="M364 41h0"></path>
<path d="M88 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M108 21h236"></path>
</g>
<path d="M344 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M88 41h20"></path>
<g>
<path d="M108 41h0"></path>
<path d="M344 41h0"></path>
<path d="M108 41h10"></path>
<g>
<path d="M118 41h0"></path>
<path d="M334 41h0"></path>
<path d="M118 41h10"></path>
<g>
<path d="M128 41h0"></path>
<path d="M196 41h0"></path>
<rect x="128" y="30" width="68" height="22"></rect>
<text x="162" y="45">string</text>
</g>
<path d="M196 41h10"></path>
<path d="M206 41h10"></path>
<g>
<path d="M216 41h0"></path>
<path d="M244 41h0"></path>
<rect x="216" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="230" y="45">:</text>
</g>
<path d="M244 41h10"></path>
<path d="M254 41h10"></path>
<g>
<path d="M264 41h0"></path>
<path d="M324 41h0"></path>
<rect x="264" y="30" width="60" height="22"></rect>
<text x="294" y="45">value</text>
</g>
<path d="M324 41h10"></path>
</g>
<path d="M334 41h10"></path>
<path d="M118 41a10 10 0 0 0 -10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M118 71h94"></path>
<path d="M240 71h94"></path>
<rect x="212" y="60" width="28" height="22" rx="10" ry="10"></rect>
<text x="226" y="75">,</text>
</g>
<path d="M334 71a10 10 0 0 0 10 -10v-10a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M344 41h20"></path>
</g>
<path d="M364 41h10"></path>
<g>
<path d="M374 41h0"></path>
<path d="M402 41h0"></path>
<rect x="374" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="388" y="45">}</text>
</g>
<path d="M402 41h10"></path>
<path d="M 412 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h4>Object with comments</h4>
<p>Jetson uses this syntax for Objects instead of the usual shortened one above:</p>
<svg class="railroad-diagram" width="1269" height="122">
<g transform="translate(.5 .5)">
<path d="M 20 41 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 51h10"></path>
<g>
<path d="M50 51h0"></path>
<path d="M78 51h0"></path>
<rect x="50" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="55">{</text>
</g>
<path d="M78 51h10"></path>
<g>
<path d="M88 51h0"></path>
<path d="M292 51h0"></path>
<path d="M88 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M108 31h164"></path>
</g>
<path d="M272 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M88 51h20"></path>
<g>
<path d="M108 51h0"></path>
<path d="M272 51h0"></path>
<rect x="108" y="40" width="164" height="22"></rect>
<text x="190" y="55">multi-line-comment</text>
</g>
<path d="M272 51h20"></path>
</g>
<g>
<path d="M292 51h0"></path>
<path d="M976 51h0"></path>
<path d="M292 51a10 10 0 0 0 10 -10v-9a10 10 0 0 1 10 -10"></path>
<g>
<path d="M312 22h644"></path>
</g>
<path d="M956 22a10 10 0 0 1 10 10v9a10 10 0 0 0 10 10"></path>
<path d="M292 51h20"></path>
<g>
<path d="M312 51h0"></path>
<path d="M956 51h0"></path>
<path d="M312 51h10"></path>
<g>
<path d="M322 51h0"></path>
<path d="M946 51h0"></path>
<path d="M322 51h10"></path>
<g>
<path d="M332 51h0"></path>
<path d="M400 51h0"></path>
<rect x="332" y="40" width="68" height="22"></rect>
<text x="366" y="55">string</text>
</g>
<path d="M400 51h10"></path>
<g>
<path d="M410 51h0"></path>
<path d="M614 51h0"></path>
<path d="M410 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M430 31h164"></path>
</g>
<path d="M594 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M410 51h20"></path>
<g>
<path d="M430 51h0"></path>
<path d="M594 51h0"></path>
<rect x="430" y="40" width="164" height="22"></rect>
<text x="512" y="55">multi-line-comment</text>
</g>
<path d="M594 51h20"></path>
</g>
<path d="M614 51h10"></path>
<g>
<path d="M624 51h0"></path>
<path d="M652 51h0"></path>
<rect x="624" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="638" y="55">:</text>
</g>
<path d="M652 51h10"></path>
<g>
<path d="M662 51h0"></path>
<path d="M866 51h0"></path>
<path d="M662 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M682 31h164"></path>
</g>
<path d="M846 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M662 51h20"></path>
<g>
<path d="M682 51h0"></path>
<path d="M846 51h0"></path>
<rect x="682" y="40" width="164" height="22"></rect>
<text x="764" y="55">multi-line-comment</text>
</g>
<path d="M846 51h20"></path>
</g>
<path d="M866 51h10"></path>
<g>
<path d="M876 51h0"></path>
<path d="M936 51h0"></path>
<rect x="876" y="40" width="60" height="22"></rect>
<text x="906" y="55">value</text>
</g>
<path d="M936 51h10"></path>
</g>
<path d="M946 51h10"></path>
<path d="M322 51a10 10 0 0 0 -10 10v20a10 10 0 0 0 10 10"></path>
<g>
<path d="M322 91h84"></path>
<path d="M862 91h84"></path>
<g>
<path d="M406 91h0"></path>
<path d="M610 91h0"></path>
<path d="M406 91a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M426 71h164"></path>
</g>
<path d="M590 71a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M406 91h20"></path>
<g>
<path d="M426 91h0"></path>
<path d="M590 91h0"></path>
<rect x="426" y="80" width="164" height="22"></rect>
<text x="508" y="95">multi-line-comment</text>
</g>
<path d="M590 91h20"></path>
</g>
<path d="M610 91h10"></path>
<g>
<path d="M620 91h0"></path>
<path d="M648 91h0"></path>
<rect x="620" y="80" width="28" height="22" rx="10" ry="10"></rect>
<text x="634" y="95">,</text>
</g>
<path d="M648 91h10"></path>
<g>
<path d="M658 91h0"></path>
<path d="M862 91h0"></path>
<path d="M658 91a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M678 71h164"></path>
</g>
<path d="M842 71a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M658 91h20"></path>
<g>
<path d="M678 91h0"></path>
<path d="M842 91h0"></path>
<rect x="678" y="80" width="164" height="22"></rect>
<text x="760" y="95">multi-line-comment</text>
</g>
<path d="M842 91h20"></path>
</g>
</g>
<path d="M946 91a10 10 0 0 0 10 -10v-20a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M956 51h20"></path>
</g>
<g>
<path d="M976 51h0"></path>
<path d="M1180 51h0"></path>
<path d="M976 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M996 31h164"></path>
</g>
<path d="M1160 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M976 51h20"></path>
<g>
<path d="M996 51h0"></path>
<path d="M1160 51h0"></path>
<rect x="996" y="40" width="164" height="22"></rect>
<text x="1078" y="55">multi-line-comment</text>
</g>
<path d="M1160 51h20"></path>
</g>
<path d="M1180 51h10"></path>
<g>
<path d="M1190 51h0"></path>
<path d="M1218 51h0"></path>
<rect x="1190" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="1204" y="55">}</text>
</g>
<path d="M1218 51h10"></path>
<path d="M 1228 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>Template String</h3>
<svg class="railroad-diagram" width="369" height="81">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 41h10"></path>
<g>
<path d="M50 41h0"></path>
<path d="M78 41h0"></path>
<rect x="50" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="45">`</text>
</g>
<path d="M78 41h10"></path>
<g>
<path d="M88 41h0"></path>
<path d="M280 41h0"></path>
<path d="M88 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M108 21h152"></path>
</g>
<path d="M260 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M88 41h20"></path>
<g>
<path d="M108 41h0"></path>
<path d="M260 41h0"></path>
<path d="M108 41h10"></path>
<g>
<path d="M118 41h0"></path>
<path d="M250 41h0"></path>
<rect x="118" y="30" width="132" height="22"></rect>
<text x="184" y="45">Anything but `</text>
</g>
<path d="M250 41h10"></path>
<path d="M118 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M118 61h132"></path>
</g>
<path d="M250 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M260 41h20"></path>
</g>
<path d="M280 41h10"></path>
<g>
<path d="M290 41h0"></path>
<path d="M318 41h0"></path>
<rect x="290" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="304" y="45">`</text>
</g>
<path d="M318 41h10"></path>
<path d="M 328 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>Number</h3>
<svg class="railroad-diagram" width="885" height="150">
<g transform="translate(.5 .5)">
<path d="M 20 60 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 70h0"></path>
<path d="M108 70h0"></path>
<path d="M40 70h20"></path>
<g>
<path d="M60 70h28"></path>
</g>
<path d="M88 70h20"></path>
<path d="M40 70a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 90h0"></path>
<path d="M88 90h0"></path>
<rect x="60" y="79" width="28" height="22" rx="10" ry="10"></rect>
<text x="74" y="94">-</text>
</g>
<path d="M88 90a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
</g>
<g>
<path d="M108 70h0"></path>
<path d="M380 70h0"></path>
<path d="M108 70h20"></path>
<g>
<path d="M128 70h102"></path>
<path d="M258 70h102"></path>
<rect x="230" y="59" width="28" height="22" rx="10" ry="10"></rect>
<text x="244" y="74">0</text>
</g>
<path d="M360 70h20"></path>
<path d="M108 70a10 10 0 0 1 10 10v20a10 10 0 0 0 10 10"></path>
<g>
<path d="M128 110h0"></path>
<path d="M360 110h0"></path>
<path d="M128 110h10"></path>
<g>
<path d="M138 110h0"></path>
<path d="M230 110h0"></path>
<rect x="138" y="99" width="92" height="22"></rect>
<text x="184" y="114">digit 1-9</text>
</g>
<path d="M230 110h10"></path>
<g>
<path d="M240 110h0"></path>
<path d="M360 110h0"></path>
<path d="M240 110a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M260 90h80"></path>
</g>
<path d="M340 90a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M240 110h20"></path>
<g>
<path d="M260 110h0"></path>
<path d="M340 110h0"></path>
<path d="M260 110h10"></path>
<g>
<path d="M270 110h0"></path>
<path d="M330 110h0"></path>
<rect x="270" y="99" width="60" height="22"></rect>
<text x="300" y="114">digit</text>
</g>
<path d="M330 110h10"></path>
<path d="M270 110a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M270 130h60"></path>
</g>
<path d="M330 130a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M340 110h20"></path>
</g>
</g>
<path d="M360 110a10 10 0 0 0 10 -10v-20a10 10 0 0 1 10 -10"></path>
</g>
<g>
<path d="M380 70h0"></path>
<path d="M568 70h0"></path>
<path d="M380 70a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M400 50h148"></path>
</g>
<path d="M548 50a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M380 70h20"></path>
<g>
<path d="M400 70h0"></path>
<path d="M548 70h0"></path>
<path d="M400 70h10"></path>
<g>
<path d="M410 70h0"></path>
<path d="M538 70h0"></path>
<path d="M410 70h10"></path>
<g>
<path d="M420 70h0"></path>
<path d="M448 70h0"></path>
<rect x="420" y="59" width="28" height="22" rx="10" ry="10"></rect>
<text x="434" y="74">.</text>
</g>
<path d="M448 70h10"></path>
<path d="M458 70h10"></path>
<g>
<path d="M468 70h0"></path>
<path d="M528 70h0"></path>
<rect x="468" y="59" width="60" height="22"></rect>
<text x="498" y="74">digit</text>
</g>
<path d="M528 70h10"></path>
</g>
<path d="M538 70h10"></path>
<path d="M410 70a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M410 90h128"></path>
</g>
<path d="M538 90a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M548 70h20"></path>
</g>
<g>
<path d="M568 70h0"></path>
<path d="M844 70h0"></path>
<path d="M568 70a10 10 0 0 0 10 -10v-28a10 10 0 0 1 10 -10"></path>
<g>
<path d="M588 22h236"></path>
</g>
<path d="M824 22a10 10 0 0 1 10 10v28a10 10 0 0 0 10 10"></path>
<path d="M568 70h20"></path>
<g>
<path d="M588 70h0"></path>
<path d="M824 70h0"></path>
<g>
<path d="M588 70h0"></path>
<path d="M656 70h0"></path>
<path d="M588 70h20"></path>
<g>
<path d="M608 70h0"></path>
<path d="M636 70h0"></path>
<rect x="608" y="59" width="28" height="22" rx="10" ry="10"></rect>
<text x="622" y="74">e</text>
</g>
<path d="M636 70h20"></path>
<path d="M588 70a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M608 100h0"></path>
<path d="M636 100h0"></path>
<rect x="608" y="89" width="28" height="22" rx="10" ry="10"></rect>
<text x="622" y="104">E</text>
</g>
<path d="M636 100a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
<g>
<path d="M656 70h0"></path>
<path d="M724 70h0"></path>
<path d="M656 70a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M676 50h0"></path>
<path d="M704 50h0"></path>
<rect x="676" y="39" width="28" height="22" rx="10" ry="10"></rect>
<text x="690" y="54">+</text>
</g>
<path d="M704 50a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M656 70h20"></path>
<g>
<path d="M676 70h28"></path>
</g>
<path d="M704 70h20"></path>
<path d="M656 70a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M676 90h0"></path>
<path d="M704 90h0"></path>
<rect x="676" y="79" width="28" height="22" rx="10" ry="10"></rect>
<text x="690" y="94">-</text>
</g>
<path d="M704 90a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
</g>
<path d="M724 70h10"></path>
<g>
<path d="M734 70h0"></path>
<path d="M814 70h0"></path>
<path d="M734 70h10"></path>
<g>
<path d="M744 70h0"></path>
<path d="M804 70h0"></path>
<rect x="744" y="59" width="60" height="22"></rect>
<text x="774" y="74">digit</text>
</g>
<path d="M804 70h10"></path>
<path d="M744 70a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M744 90h60"></path>
</g>
<path d="M804 90a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M814 70h10"></path>
</g>
<path d="M824 70h20"></path>
</g>
<path d="M 844 70 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>Multiline comments</h3>
<svg class="railroad-diagram" width="497" height="81">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 41h10"></path>
<g>
<path d="M50 41h0"></path>
<path d="M86 41h0"></path>
<rect x="50" y="30" width="36" height="22" rx="10" ry="10"></rect>
<text x="68" y="45">/*</text>
</g>
<path d="M86 41h10"></path>
<g>
<path d="M96 41h0"></path>
<path d="M400 41h0"></path>
<path d="M96 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M116 21h264"></path>
</g>
<path d="M380 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M96 41h20"></path>
<g>
<path d="M116 41h0"></path>
<path d="M380 41h0"></path>
<path d="M116 41h10"></path>
<g>
<path d="M126 41h0"></path>
<path d="M370 41h0"></path>
<rect x="126" y="30" width="244" height="22"></rect>
<text x="248" y="45">Anything but * followed by /</text>
</g>
<path d="M370 41h10"></path>
<path d="M126 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M126 61h244"></path>
</g>
<path d="M370 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M380 41h20"></path>
</g>
<path d="M400 41h10"></path>
<g>
<path d="M410 41h0"></path>
<path d="M446 41h0"></path>
<rect x="410" y="30" width="36" height="22" rx="10" ry="10"></rect>
<text x="428" y="45">*/</text>
</g>
<path d="M446 41h10"></path>
<path d="M 456 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
<h3>String</h3>
<svg class="railroad-diagram" width="653" height="342">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<path d="M40 31h10"></path>
<g>
<path d="M50 31h0"></path>
<path d="M78 31h0"></path>
<rect x="50" y="20" width="28" height="22" rx="10" ry="10"></rect>
<text x="64" y="35">"</text>
</g>
<path d="M78 31h10"></path>
<g>
<path d="M88 31h0"></path>
<path d="M564 31h0"></path>
<path d="M88 31h20"></path>
<g>
<path d="M108 31h0"></path>
<path d="M544 31h0"></path>
<rect x="108" y="20" width="436" height="22"></rect>
<text x="326" y="35">Any Unicode character but " or or control character</text>
</g>
<path d="M544 31h20"></path>
<path d="M88 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M108 51h436"></path>
</g>
<path d="M544 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<path d="M88 31a10 10 0 0 1 10 10v19a10 10 0 0 0 10 10"></path>
<g>
<path d="M108 70h50"></path>
<path d="M494 70h50"></path>
<path d="M158 70h10"></path>
<g>
<path d="M168 70h0"></path>
<path d="M196 70h0"></path>
<rect x="168" y="59" width="28" height="22" rx="10" ry="10"></rect>
<text x="182" y="74">\</text>
</g>
<path d="M196 70h10"></path>
<g>
<path d="M206 70h0"></path>
<path d="M494 70h0"></path>
<path d="M206 70h20"></path>
<g>
<path d="M226 70h110"></path>
<path d="M364 70h110"></path>
<rect x="336" y="59" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="74">\</text>
</g>
<path d="M474 70h20"></path>
<path d="M206 70a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 100h110"></path>
<path d="M364 100h110"></path>
<rect x="336" y="89" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="104">"</text>
</g>
<path d="M474 100a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 130h110"></path>
<path d="M364 130h110"></path>
<rect x="336" y="119" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="134">/</text>
</g>
<path d="M474 130a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 160h110"></path>
<path d="M364 160h110"></path>
<rect x="336" y="149" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="164">b</text>
</g>
<path d="M474 160a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v100a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 190h110"></path>
<path d="M364 190h110"></path>
<rect x="336" y="179" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="194">f</text>
</g>
<path d="M474 190a10 10 0 0 0 10 -10v-100a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v130a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 220h110"></path>
<path d="M364 220h110"></path>
<rect x="336" y="209" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="224">n</text>
</g>
<path d="M474 220a10 10 0 0 0 10 -10v-130a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v160a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 250h110"></path>
<path d="M364 250h110"></path>
<rect x="336" y="239" width="28" height="22" rx="10" ry="10"></rect>
<text x="350" y="254">r</text>
</g>
<path d="M474 250a10 10 0 0 0 10 -10v-160a10 10 0 0 1 10 -10"></path>
<path d="M206 70a10 10 0 0 1 10 10v190a10 10 0 0 0 10 10"></path>
<g>
<path d="M226 280h110"></path>
<path d="M364 280h110"></path>