-
Notifications
You must be signed in to change notification settings - Fork 2
/
dot.pegjs.html
2292 lines (2257 loc) · 58.8 KB
/
dot.pegjs.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 charset="utf-8">
<title>Railroad diagram for dot.pegjs</title>
<style>
svg.railroad-diagram {
background-color: hsl(30,20%,95%);
}
svg.railroad-diagram path {
stroke-width: 3;
stroke: black;
fill: none;
}
svg.railroad-diagram text {
font: bold 14px monospace;
text-anchor: middle;
cursor: pointer;
}
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%);
}
body {
background-color: hsl(30,20%,95%);
}
input[type=text].form-control, textarea.form-control {
background-color: hsl(30,20%,98%);;
}
.load-examples {
margin-top: 10px;
margin-bottom: 10px;
}
.load-examples a {
margin-left: 10px;
float: left;
}
textarea.form-control.grammar-edit {
height: 400px;
margin-bottom: 20px;
font-family: monospace;
}
.alert {
word-wrap: break-word;
}
</style>
<style>
body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.rule {
padding-top: 4em;
}
.container {
margin: auto;
padding: 2em;
}
</style>
<script>
function svgBlockClick(ev) {
if(ev.target.tagName === 'text') {
location.hash = ev.target.textContent;
}
}
</script>
</head>
<body>
<div class="container">
<h1>dot.pegjs</h1>
<h2></h2>
<div class="rule">
<h3 id=file>file</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="229" height="71" viewBox="0 0 229 71">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M188 31h0"></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"></rect>
<text x="64" y="35">_</text>
</g>
<path d="M78 31h10"></path>
<path d="M88 31h10"></path>
<g>
<path d="M98 31h0"></path>
<path d="M178 31h0"></path>
<path d="M98 31h10"></path>
<g>
<path d="M108 31h0"></path>
<path d="M168 31h0"></path>
<rect x="108" y="20" width="60" height="22"></rect>
<text x="138" y="35">graph</text>
</g>
<path d="M168 31h10"></path>
<path d="M108 31a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M108 51h60"></path>
</g>
<path d="M168 51a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M178 31h10"></path>
</g>
<path d="M 188 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
</div>
<div>
References:
<a href="#_">_</a>
<a href="#graph">graph</a>
</div>
</div>
<div class="rule">
<h3 id=graph>graph</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="801" height="102" viewBox="0 0 801 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>
<g>
<path d="M40 41h0"></path>
<path d="M760 41h0"></path>
<g>
<path d="M40 41h0"></path>
<path d="M216 41h0"></path>
<path d="M40 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 21h136"></path>
</g>
<path d="M196 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M196 41h0"></path>
<path d="M60 41h10"></path>
<g>
<path d="M70 41h0"></path>
<path d="M138 41h0"></path>
<rect x="70" y="30" width="68" height="22" rx="10" ry="10"></rect>
<text x="104" y="45">strict</text>
</g>
<path d="M138 41h10"></path>
<path d="M148 41h10"></path>
<g>
<path d="M158 41h0"></path>
<path d="M186 41h0"></path>
<rect x="158" y="30" width="28" height="22"></rect>
<text x="172" y="45">_</text>
</g>
<path d="M186 41h10"></path>
</g>
<path d="M196 41h20"></path>
</g>
<g>
<path d="M216 41h0"></path>
<path d="M332 41h0"></path>
<path d="M216 41h20"></path>
<g>
<path d="M236 41h8"></path>
<path d="M304 41h8"></path>
<rect x="244" y="30" width="60" height="22" rx="10" ry="10"></rect>
<text x="274" y="45">graph</text>
</g>
<path d="M312 41h20"></path>
<path d="M216 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M236 71h0"></path>
<path d="M312 71h0"></path>
<rect x="236" y="60" width="76" height="22" rx="10" ry="10"></rect>
<text x="274" y="75">digraph</text>
</g>
<path d="M312 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
<path d="M332 41h10"></path>
<g>
<path d="M342 41h0"></path>
<path d="M370 41h0"></path>
<rect x="342" y="30" width="28" height="22"></rect>
<text x="356" y="45">_</text>
</g>
<path d="M370 41h10"></path>
<g>
<path d="M380 41h0"></path>
<path d="M456 41h0"></path>
<path d="M380 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M400 21h36"></path>
</g>
<path d="M436 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M380 41h20"></path>
<g>
<path d="M400 41h0"></path>
<path d="M436 41h0"></path>
<rect x="400" y="30" width="36" height="22"></rect>
<text x="418" y="45">ID</text>
</g>
<path d="M436 41h20"></path>
</g>
<path d="M456 41h10"></path>
<g>
<path d="M466 41h0"></path>
<path d="M494 41h0"></path>
<rect x="466" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="480" y="45">{</text>
</g>
<path d="M494 41h10"></path>
<path d="M504 41h10"></path>
<g>
<path d="M514 41h0"></path>
<path d="M542 41h0"></path>
<rect x="514" y="30" width="28" height="22"></rect>
<text x="528" y="45">_</text>
</g>
<path d="M542 41h10"></path>
<path d="M552 41h10"></path>
<g>
<path d="M562 41h0"></path>
<path d="M654 41h0"></path>
<rect x="562" y="30" width="92" height="22"></rect>
<text x="608" y="45">stmt_list</text>
</g>
<path d="M654 41h10"></path>
<path d="M664 41h10"></path>
<g>
<path d="M674 41h0"></path>
<path d="M702 41h0"></path>
<rect x="674" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="688" y="45">}</text>
</g>
<path d="M702 41h10"></path>
<path d="M712 41h10"></path>
<g>
<path d="M722 41h0"></path>
<path d="M750 41h0"></path>
<rect x="722" y="30" width="28" height="22"></rect>
<text x="736" y="45">_</text>
</g>
<path d="M750 41h10"></path>
</g>
<path d="M 760 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#file">file</a>
</div>
<div>
References:
<a href="#_">_</a>
<a href="#ID">ID</a>
<a href="#stmt_list">stmt_list</a>
</div>
</div>
<div class="rule">
<h3 id=subgraph>subgraph</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="653" height="82" viewBox="0 0 653 82">
<g transform="translate(.5 .5)">
<path d="M 20 41 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 51h0"></path>
<path d="M612 51h0"></path>
<g>
<path d="M40 51h0"></path>
<path d="M308 51h0"></path>
<path d="M40 51a10 10 0 0 0 10 -10v-9a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 22h228"></path>
</g>
<path d="M288 22a10 10 0 0 1 10 10v9a10 10 0 0 0 10 10"></path>
<path d="M40 51h20"></path>
<g>
<path d="M60 51h0"></path>
<path d="M288 51h0"></path>
<path d="M60 51h10"></path>
<g>
<path d="M70 51h0"></path>
<path d="M154 51h0"></path>
<rect x="70" y="40" width="84" height="22" rx="10" ry="10"></rect>
<text x="112" y="55">subgraph</text>
</g>
<path d="M154 51h10"></path>
<path d="M164 51h10"></path>
<g>
<path d="M174 51h0"></path>
<path d="M202 51h0"></path>
<rect x="174" y="40" width="28" height="22"></rect>
<text x="188" y="55">_</text>
</g>
<path d="M202 51h10"></path>
<g>
<path d="M212 51h0"></path>
<path d="M288 51h0"></path>
<path d="M212 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M232 31h36"></path>
</g>
<path d="M268 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M212 51h20"></path>
<g>
<path d="M232 51h0"></path>
<path d="M268 51h0"></path>
<rect x="232" y="40" width="36" height="22"></rect>
<text x="250" y="55">ID</text>
</g>
<path d="M268 51h20"></path>
</g>
</g>
<path d="M288 51h20"></path>
</g>
<path d="M308 51h10"></path>
<g>
<path d="M318 51h0"></path>
<path d="M346 51h0"></path>
<rect x="318" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="332" y="55">{</text>
</g>
<path d="M346 51h10"></path>
<path d="M356 51h10"></path>
<g>
<path d="M366 51h0"></path>
<path d="M394 51h0"></path>
<rect x="366" y="40" width="28" height="22"></rect>
<text x="380" y="55">_</text>
</g>
<path d="M394 51h10"></path>
<path d="M404 51h10"></path>
<g>
<path d="M414 51h0"></path>
<path d="M506 51h0"></path>
<rect x="414" y="40" width="92" height="22"></rect>
<text x="460" y="55">stmt_list</text>
</g>
<path d="M506 51h10"></path>
<path d="M516 51h10"></path>
<g>
<path d="M526 51h0"></path>
<path d="M554 51h0"></path>
<rect x="526" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="540" y="55">}</text>
</g>
<path d="M554 51h10"></path>
<path d="M564 51h10"></path>
<g>
<path d="M574 51h0"></path>
<path d="M602 51h0"></path>
<rect x="574" y="40" width="28" height="22"></rect>
<text x="588" y="55">_</text>
</g>
<path d="M602 51h10"></path>
</g>
<path d="M 612 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#stmt">stmt</a>
<a href="#edge_stmt">edge_stmt</a>
<a href="#edgeRHS">edgeRHS</a>
</div>
<div>
References:
<a href="#_">_</a>
<a href="#ID">ID</a>
<a href="#stmt_list">stmt_list</a>
</div>
</div>
<div class="rule">
<h3 id=stmt_list>stmt_list</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="349" height="91" viewBox="0 0 349 91">
<g transform="translate(.5 .5)">
<path d="M 20 41 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 51h0"></path>
<path d="M308 51h0"></path>
<path d="M40 51a10 10 0 0 0 10 -10v-9a10 10 0 0 1 10 -10"></path>
<g>
<path d="M60 22h228"></path>
</g>
<path d="M288 22a10 10 0 0 1 10 10v9a10 10 0 0 0 10 10"></path>
<path d="M40 51h20"></path>
<g>
<path d="M60 51h0"></path>
<path d="M288 51h0"></path>
<path d="M60 51h10"></path>
<g>
<path d="M70 51h0"></path>
<path d="M278 51h0"></path>
<path d="M70 51h10"></path>
<g>
<path d="M80 51h0"></path>
<path d="M132 51h0"></path>
<rect x="80" y="40" width="52" height="22"></rect>
<text x="106" y="55">stmt</text>
</g>
<path d="M132 51h10"></path>
<g>
<path d="M142 51h0"></path>
<path d="M278 51h0"></path>
<path d="M142 51a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M162 31h96"></path>
</g>
<path d="M258 31a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M142 51h20"></path>
<g>
<path d="M162 51h0"></path>
<path d="M258 51h0"></path>
<path d="M162 51h10"></path>
<g>
<path d="M172 51h0"></path>
<path d="M200 51h0"></path>
<rect x="172" y="40" width="28" height="22" rx="10" ry="10"></rect>
<text x="186" y="55">;</text>
</g>
<path d="M200 51h10"></path>
<path d="M210 51h10"></path>
<g>
<path d="M220 51h0"></path>
<path d="M248 51h0"></path>
<rect x="220" y="40" width="28" height="22"></rect>
<text x="234" y="55">_</text>
</g>
<path d="M248 51h10"></path>
</g>
<path d="M258 51h20"></path>
</g>
</g>
<path d="M278 51h10"></path>
<path d="M70 51a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M70 71h208"></path>
</g>
<path d="M278 71a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M288 51h20"></path>
</g>
<path d="M 308 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#graph">graph</a>
<a href="#subgraph">subgraph</a>
</div>
<div>
References:
<a href="#stmt">stmt</a>
<a href="#_">_</a>
</div>
</div>
<div class="rule">
<h3 id=stmt>stmt</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="329" height="182" viewBox="0 0 329 182">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M288 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h58"></path>
<path d="M210 31h58"></path>
<rect x="118" y="20" width="92" height="22"></rect>
<text x="164" y="35">attr_stmt</text>
</g>
<path d="M268 31h20"></path>
<path d="M40 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 61h58"></path>
<path d="M210 61h58"></path>
<rect x="118" y="50" width="92" height="22"></rect>
<text x="164" y="65">edge_stmt</text>
</g>
<path d="M268 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<path d="M40 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 91h62"></path>
<path d="M206 91h62"></path>
<rect x="122" y="80" width="84" height="22"></rect>
<text x="164" y="95">subgraph</text>
</g>
<path d="M268 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
<path d="M40 31a10 10 0 0 1 10 10v70a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 121h0"></path>
<path d="M268 121h0"></path>
<path d="M60 121h10"></path>
<g>
<path d="M70 121h0"></path>
<path d="M106 121h0"></path>
<rect x="70" y="110" width="36" height="22"></rect>
<text x="88" y="125">ID</text>
</g>
<path d="M106 121h10"></path>
<path d="M116 121h10"></path>
<g>
<path d="M126 121h0"></path>
<path d="M154 121h0"></path>
<rect x="126" y="110" width="28" height="22" rx="10" ry="10"></rect>
<text x="140" y="125">=</text>
</g>
<path d="M154 121h10"></path>
<path d="M164 121h10"></path>
<g>
<path d="M174 121h0"></path>
<path d="M202 121h0"></path>
<rect x="174" y="110" width="28" height="22"></rect>
<text x="188" y="125">_</text>
</g>
<path d="M202 121h10"></path>
<path d="M212 121h10"></path>
<g>
<path d="M222 121h0"></path>
<path d="M258 121h0"></path>
<rect x="222" y="110" width="36" height="22"></rect>
<text x="240" y="125">ID</text>
</g>
<path d="M258 121h10"></path>
</g>
<path d="M268 121a10 10 0 0 0 10 -10v-70a10 10 0 0 1 10 -10"></path>
<path d="M40 31a10 10 0 0 1 10 10v100a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 151h58"></path>
<path d="M210 151h58"></path>
<rect x="118" y="140" width="92" height="22"></rect>
<text x="164" y="155">node_stmt</text>
</g>
<path d="M268 151a10 10 0 0 0 10 -10v-100a10 10 0 0 1 10 -10"></path>
</g>
<path d="M 288 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#stmt_list">stmt_list</a>
</div>
<div>
References:
<a href="#attr_stmt">attr_stmt</a>
<a href="#edge_stmt">edge_stmt</a>
<a href="#subgraph">subgraph</a>
<a href="#ID">ID</a>
<a href="#_">_</a>
<a href="#node_stmt">node_stmt</a>
</div>
</div>
<div class="rule">
<h3 id=attr_stmt>attr_stmt</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="341" height="122" viewBox="0 0 341 122">
<g transform="translate(.5 .5)">
<path d="M 20 21 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 31h0"></path>
<path d="M300 31h0"></path>
<g>
<path d="M40 31h0"></path>
<path d="M140 31h0"></path>
<path d="M40 31h20"></path>
<g>
<path d="M60 31h0"></path>
<path d="M120 31h0"></path>
<rect x="60" y="20" width="60" height="22" rx="10" ry="10"></rect>
<text x="90" y="35">graph</text>
</g>
<path d="M120 31h20"></path>
<path d="M40 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 61h4"></path>
<path d="M116 61h4"></path>
<rect x="64" y="50" width="52" height="22" rx="10" ry="10"></rect>
<text x="90" y="65">node</text>
</g>
<path d="M120 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
<path d="M40 31a10 10 0 0 1 10 10v40a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 91h4"></path>
<path d="M116 91h4"></path>
<rect x="64" y="80" width="52" height="22" rx="10" ry="10"></rect>
<text x="90" y="95">edge</text>
</g>
<path d="M120 91a10 10 0 0 0 10 -10v-40a10 10 0 0 1 10 -10"></path>
</g>
<path d="M140 31h10"></path>
<g>
<path d="M150 31h0"></path>
<path d="M178 31h0"></path>
<rect x="150" y="20" width="28" height="22"></rect>
<text x="164" y="35">_</text>
</g>
<path d="M178 31h10"></path>
<path d="M188 31h10"></path>
<g>
<path d="M198 31h0"></path>
<path d="M290 31h0"></path>
<rect x="198" y="20" width="92" height="22"></rect>
<text x="244" y="35">attr_list</text>
</g>
<path d="M290 31h10"></path>
</g>
<path d="M 300 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#stmt">stmt</a>
</div>
<div>
References:
<a href="#_">_</a>
<a href="#attr_list">attr_list</a>
</div>
</div>
<div class="rule">
<h3 id=attr_list>attr_list</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="425" height="89" viewBox="0 0 425 89">
<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="M374 41h0"></path>
<path d="M50 41h10"></path>
<g>
<path d="M60 41h0"></path>
<path d="M364 41h0"></path>
<path d="M60 41h10"></path>
<g>
<path d="M70 41h0"></path>
<path d="M98 41h0"></path>
<rect x="70" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="84" y="45">[</text>
</g>
<path d="M98 41h10"></path>
<path d="M108 41h10"></path>
<g>
<path d="M118 41h0"></path>
<path d="M146 41h0"></path>
<rect x="118" y="30" width="28" height="22"></rect>
<text x="132" y="45">_</text>
</g>
<path d="M146 41h10"></path>
<g>
<path d="M156 41h0"></path>
<path d="M268 41h0"></path>
<path d="M156 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M176 21h72"></path>
</g>
<path d="M248 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M156 41h20"></path>
<g>
<path d="M176 41h0"></path>
<path d="M248 41h0"></path>
<path d="M176 41h10"></path>
<g>
<path d="M186 41h0"></path>
<path d="M238 41h0"></path>
<rect x="186" y="30" width="52" height="22"></rect>
<text x="212" y="45">attr</text>
</g>
<path d="M238 41h10"></path>
<path d="M186 41a10 10 0 0 0 -10 10v0a10 10 0 0 0 10 10"></path>
<g>
<path d="M186 61h52"></path>
</g>
<path d="M238 61a10 10 0 0 0 10 -10v0a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M248 41h20"></path>
</g>
<path d="M268 41h10"></path>
<g>
<path d="M278 41h0"></path>
<path d="M306 41h0"></path>
<rect x="278" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="292" y="45">]</text>
</g>
<path d="M306 41h10"></path>
<path d="M316 41h10"></path>
<g>
<path d="M326 41h0"></path>
<path d="M354 41h0"></path>
<rect x="326" y="30" width="28" height="22"></rect>
<text x="340" y="45">_</text>
</g>
<path d="M354 41h10"></path>
</g>
<path d="M364 41h10"></path>
<path d="M60 41a10 10 0 0 0 -10 10v8a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 69h304"></path>
</g>
<path d="M364 69a10 10 0 0 0 10 -10v-8a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M374 41h10"></path>
<path d="M 384 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#attr_stmt">attr_stmt</a>
<a href="#edge_stmt">edge_stmt</a>
<a href="#node_stmt">node_stmt</a>
</div>
<div>
References:
<a href="#_">_</a>
<a href="#attr">attr</a>
</div>
</div>
<div class="rule">
<h3 id=attr>attr</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="449" height="72" viewBox="0 0 449 72">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M408 41h0"></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"></rect>
<text x="68" y="45">ID</text>
</g>
<path d="M86 41h10"></path>
<path d="M96 41h10"></path>
<g>
<path d="M106 41h0"></path>
<path d="M134 41h0"></path>
<rect x="106" y="30" width="28" height="22" rx="10" ry="10"></rect>
<text x="120" y="45">=</text>
</g>
<path d="M134 41h10"></path>
<path d="M144 41h10"></path>
<g>
<path d="M154 41h0"></path>
<path d="M182 41h0"></path>
<rect x="154" y="30" width="28" height="22"></rect>
<text x="168" y="45">_</text>
</g>
<path d="M182 41h10"></path>
<path d="M192 41h10"></path>
<g>
<path d="M202 41h0"></path>
<path d="M238 41h0"></path>
<rect x="202" y="30" width="36" height="22"></rect>
<text x="220" y="45">ID</text>
</g>
<path d="M238 41h10"></path>
<g>
<path d="M248 41h0"></path>
<path d="M408 41h0"></path>
<path d="M248 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M268 21h120"></path>
</g>
<path d="M388 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M248 41h20"></path>
<g>
<path d="M268 41h0"></path>
<path d="M388 41h0"></path>
<path d="M268 41h10"></path>
<g>
<path d="M278 41h0"></path>
<path d="M330 41h0"></path>
<rect x="278" y="30" width="52" height="22" rx="10" ry="10"></rect>
<text x="304" y="45">[;,]</text>
</g>
<path d="M330 41h10"></path>
<path d="M340 41h10"></path>
<g>
<path d="M350 41h0"></path>
<path d="M378 41h0"></path>
<rect x="350" y="30" width="28" height="22"></rect>
<text x="364" y="45">_</text>
</g>
<path d="M378 41h10"></path>
</g>
<path d="M388 41h20"></path>
</g>
</g>
<path d="M 408 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#attr_list">attr_list</a>
</div>
<div>
References:
<a href="#ID">ID</a>
<a href="#_">_</a>
</div>
</div>
<div class="rule">
<h3 id=edge_stmt>edge_stmt</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="433" height="102" viewBox="0 0 433 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>
<g>
<path d="M40 41h0"></path>
<path d="M392 41h0"></path>
<g>
<path d="M40 41h0"></path>
<path d="M164 41h0"></path>
<path d="M40 41h20"></path>
<g>
<path d="M60 41h0"></path>
<path d="M144 41h0"></path>
<rect x="60" y="30" width="84" height="22"></rect>
<text x="102" y="45">subgraph</text>
</g>
<path d="M144 41h20"></path>
<path d="M40 41a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 71h4"></path>
<path d="M140 71h4"></path>
<rect x="64" y="60" width="76" height="22"></rect>
<text x="102" y="75">node_id</text>
</g>
<path d="M144 71a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
<path d="M164 41h10"></path>
<g>
<path d="M174 41h0"></path>
<path d="M250 41h0"></path>
<rect x="174" y="30" width="76" height="22"></rect>
<text x="212" y="45">edgeRHS</text>
</g>
<path d="M250 41h10"></path>
<g>
<path d="M260 41h0"></path>
<path d="M392 41h0"></path>
<path d="M260 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M280 21h92"></path>
</g>
<path d="M372 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>
<path d="M260 41h20"></path>
<g>
<path d="M280 41h0"></path>
<path d="M372 41h0"></path>
<rect x="280" y="30" width="92" height="22"></rect>
<text x="326" y="45">attr_list</text>
</g>
<path d="M372 41h20"></path>
</g>
</g>
<path d="M 392 41 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#stmt">stmt</a>
</div>
<div>
References:
<a href="#subgraph">subgraph</a>
<a href="#node_id">node_id</a>
<a href="#edgeRHS">edgeRHS</a>
<a href="#attr_list">attr_list</a>
</div>
</div>
<div class="rule">
<h3 id=edgeRHS>edgeRHS</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="333" height="100" viewBox="0 0 333 100">
<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="M282 31h0"></path>
<path d="M50 31h10"></path>
<g>
<path d="M60 31h0"></path>
<path d="M272 31h0"></path>
<path d="M60 31h10"></path>
<g>
<path d="M70 31h0"></path>
<path d="M138 31h0"></path>
<rect x="70" y="20" width="68" height="22"></rect>
<text x="104" y="35">edgeop</text>
</g>
<path d="M138 31h10"></path>
<g>
<path d="M148 31h0"></path>
<path d="M272 31h0"></path>
<path d="M148 31h20"></path>
<g>
<path d="M168 31h0"></path>
<path d="M252 31h0"></path>
<rect x="168" y="20" width="84" height="22"></rect>
<text x="210" y="35">subgraph</text>
</g>
<path d="M252 31h20"></path>
<path d="M148 31a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path>
<g>
<path d="M168 61h4"></path>
<path d="M248 61h4"></path>
<rect x="172" y="50" width="76" height="22"></rect>
<text x="210" y="65">node_id</text>
</g>
<path d="M252 61a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path>
</g>
</g>
<path d="M272 31h10"></path>
<path d="M60 31a10 10 0 0 0 -10 10v29a10 10 0 0 0 10 10"></path>
<g>
<path d="M60 80h212"></path>
</g>
<path d="M272 80a10 10 0 0 0 10 -10v-29a10 10 0 0 0 -10 -10"></path>
</g>
<path d="M282 31h10"></path>
<path d="M 292 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path>
</g>
</svg>
</div>
<div>
Used by:
<a href="#edge_stmt">edge_stmt</a>
</div>
<div>
References:
<a href="#edgeop">edgeop</a>
<a href="#subgraph">subgraph</a>
<a href="#node_id">node_id</a>
</div>
</div>
<div class="rule">
<h3 id=node_stmt>node_stmt</h3>
<div onclick="svgBlockClick(event)">
<svg class="railroad-diagram" width="309" height="72" viewBox="0 0 309 72">
<g transform="translate(.5 .5)">
<path d="M 20 31 v 20 m 10 -20 v 20 m -10 -10 h 20.5"></path>
<g>
<path d="M40 41h0"></path>
<path d="M268 41h0"></path>
<path d="M40 41h10"></path>
<g>
<path d="M50 41h0"></path>
<path d="M126 41h0"></path>
<rect x="50" y="30" width="76" height="22"></rect>
<text x="88" y="45">node_id</text>
</g>
<path d="M126 41h10"></path>
<g>
<path d="M136 41h0"></path>
<path d="M268 41h0"></path>
<path d="M136 41a10 10 0 0 0 10 -10v0a10 10 0 0 1 10 -10"></path>
<g>
<path d="M156 21h92"></path>
</g>
<path d="M248 21a10 10 0 0 1 10 10v0a10 10 0 0 0 10 10"></path>