mok-parser 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,670 @@
1
+ state 7 contains 2 shift/reduce conflicts
2
+ state 8 contains 2 shift/reduce conflicts
3
+ state 15 contains 1 shift/reduce conflicts
4
+ state 17 contains 1 shift/reduce conflicts
5
+ state 18 contains 1 shift/reduce conflicts
6
+ state 21 contains 1 shift/reduce conflicts
7
+ state 27 contains 1 shift/reduce conflicts
8
+ state 30 contains 1 shift/reduce conflicts
9
+
10
+
11
+ -------- Grammar --------
12
+
13
+ rule 1 document: blocks
14
+ rule 2 blocks: block
15
+ rule 3 blocks: blocks block
16
+ rule 4 block: header
17
+ rule 5 block: paragraph
18
+ rule 6 block: quote_block
19
+ rule 7 block: itemlist_blocks
20
+ rule 8 block: numlist_blocks
21
+ rule 9 block: desc_block
22
+ rule 10 block: table_block
23
+ rule 11 block: headline
24
+ rule 12 block: WHITELINE
25
+ rule 13 header: HEADER
26
+ rule 14 headline: HEADLINE
27
+ rule 15 paragraph: plain_texts
28
+ rule 16 plain_texts: PLAIN
29
+ rule 17 plain_texts: plain_texts PLAIN
30
+ rule 18 desc_block: DESCLINE_TITLE desclines
31
+ rule 19 desclines: DESCLINE
32
+ rule 20 desclines: desclines DESCLINE
33
+ rule 21 desclines:
34
+ rule 22 quote_block: quotes
35
+ rule 23 quotes: QUOTE
36
+ rule 24 quotes: quotes QUOTE
37
+ rule 25 itemlist_blocks: itemlist_block
38
+ rule 26 itemlist_blocks: itemlist_blocks itemlist_block
39
+ rule 27 itemlist_block: itemlists
40
+ rule 28 itemlist_block: itemlist_indent_blocks
41
+ rule 29 itemlist_indent_blocks: INDENT itemlist_blocks DEDENT
42
+ rule 30 itemlists: itemlistitems
43
+ rule 31 itemlists: itemlists itemlistitems
44
+ rule 32 itemlistitems: ITEMLIST
45
+ rule 33 itemlistitems: ITEMLIST itemlist_continues
46
+ rule 34 itemlist_continues: ITEMLISTCONTINUE
47
+ rule 35 itemlist_continues: itemlist_continues ITEMLISTCONTINUE
48
+ rule 36 numlist_blocks: numlist_block
49
+ rule 37 numlist_blocks: numlist_blocks numlist_block
50
+ rule 38 numlist_block: numlists
51
+ rule 39 numlist_block: numlist_indent_blocks
52
+ rule 40 numlist_indent_blocks: INDENT numlist_blocks DEDENT
53
+ rule 41 numlists: NUMLIST
54
+ rule 42 numlists: numlists NUMLIST
55
+ rule 43 table_block: tablelines
56
+ rule 44 tablelines: TABLELINE
57
+ rule 45 tablelines: tablelines TABLELINE
58
+
59
+ ------- Symbols -------
60
+
61
+ **Nonterminals, with rules where they appear
62
+
63
+ $start (18)
64
+ on right:
65
+ on left :
66
+ document (19)
67
+ on right:
68
+ on left : 1
69
+ blocks (20)
70
+ on right: 1 3
71
+ on left : 2 3
72
+ block (21)
73
+ on right: 2 3
74
+ on left : 4 5 6 7 8 9 10 11 12
75
+ header (22)
76
+ on right: 4
77
+ on left : 13
78
+ paragraph (23)
79
+ on right: 5
80
+ on left : 15
81
+ quote_block (24)
82
+ on right: 6
83
+ on left : 22
84
+ itemlist_blocks (25)
85
+ on right: 7 26 29
86
+ on left : 25 26
87
+ numlist_blocks (26)
88
+ on right: 8 37 40
89
+ on left : 36 37
90
+ desc_block (27)
91
+ on right: 9
92
+ on left : 18
93
+ table_block (28)
94
+ on right: 10
95
+ on left : 43
96
+ headline (29)
97
+ on right: 11
98
+ on left : 14
99
+ plain_texts (30)
100
+ on right: 15 17
101
+ on left : 16 17
102
+ desclines (31)
103
+ on right: 18 20
104
+ on left : 19 20 21
105
+ quotes (32)
106
+ on right: 22 24
107
+ on left : 23 24
108
+ itemlist_block (33)
109
+ on right: 25 26
110
+ on left : 27 28
111
+ itemlists (34)
112
+ on right: 27 31
113
+ on left : 30 31
114
+ itemlist_indent_blocks (35)
115
+ on right: 28
116
+ on left : 29
117
+ itemlistitems (36)
118
+ on right: 30 31
119
+ on left : 32 33
120
+ itemlist_continues (37)
121
+ on right: 33 35
122
+ on left : 34 35
123
+ numlist_block (38)
124
+ on right: 36 37
125
+ on left : 38 39
126
+ numlists (39)
127
+ on right: 38 42
128
+ on left : 41 42
129
+ numlist_indent_blocks (40)
130
+ on right: 39
131
+ on left : 40
132
+ tablelines (41)
133
+ on right: 43 45
134
+ on left : 44 45
135
+
136
+ **Terminals, with rules where they appear
137
+
138
+ $end (0)
139
+ error (1)
140
+ DUMMY (2)
141
+ LIST (3)
142
+ PLAIN_OPEN (4)
143
+ PLAIN (5) 16 17
144
+ INDENT (6) 29 40
145
+ DEDENT (7) 29 40
146
+ DESCLINE (8) 19 20
147
+ WHITELINE (9) 12
148
+ HEADER (10) 13
149
+ HEADLINE (11) 14
150
+ DESCLINE_TITLE (12) 18
151
+ QUOTE (13) 23 24
152
+ ITEMLIST (14) 32 33
153
+ ITEMLISTCONTINUE (15) 34 35
154
+ NUMLIST (16) 41 42
155
+ TABLELINE (17) 44 45
156
+
157
+ --------- State ---------
158
+
159
+ state 0
160
+
161
+
162
+ PLAIN shift, and go to state 16
163
+ INDENT shift, and go to state 23
164
+ WHITELINE shift, and go to state 12
165
+ HEADER shift, and go to state 13
166
+ HEADLINE shift, and go to state 14
167
+ DESCLINE_TITLE shift, and go to state 17
168
+ QUOTE shift, and go to state 19
169
+ ITEMLIST shift, and go to state 25
170
+ NUMLIST shift, and go to state 29
171
+ TABLELINE shift, and go to state 31
172
+
173
+ document go to state 1
174
+ blocks go to state 2
175
+ block go to state 3
176
+ header go to state 4
177
+ paragraph go to state 5
178
+ quote_block go to state 6
179
+ itemlist_blocks go to state 7
180
+ numlist_blocks go to state 8
181
+ desc_block go to state 9
182
+ table_block go to state 10
183
+ headline go to state 11
184
+ plain_texts go to state 15
185
+ quotes go to state 18
186
+ itemlist_block go to state 20
187
+ itemlists go to state 21
188
+ itemlist_indent_blocks go to state 22
189
+ itemlistitems go to state 24
190
+ numlist_block go to state 26
191
+ numlists go to state 27
192
+ numlist_indent_blocks go to state 28
193
+ tablelines go to state 30
194
+
195
+ state 1
196
+
197
+
198
+ $end shift, and go to state 32
199
+
200
+
201
+ state 2
202
+
203
+ 1) document : blocks _
204
+ 3) blocks : blocks _ block
205
+
206
+ PLAIN shift, and go to state 16
207
+ INDENT shift, and go to state 23
208
+ WHITELINE shift, and go to state 12
209
+ HEADER shift, and go to state 13
210
+ HEADLINE shift, and go to state 14
211
+ DESCLINE_TITLE shift, and go to state 17
212
+ QUOTE shift, and go to state 19
213
+ ITEMLIST shift, and go to state 25
214
+ NUMLIST shift, and go to state 29
215
+ TABLELINE shift, and go to state 31
216
+ $default reduce using rule 1 (document)
217
+
218
+ block go to state 33
219
+ header go to state 4
220
+ paragraph go to state 5
221
+ quote_block go to state 6
222
+ itemlist_blocks go to state 7
223
+ numlist_blocks go to state 8
224
+ desc_block go to state 9
225
+ table_block go to state 10
226
+ headline go to state 11
227
+ plain_texts go to state 15
228
+ quotes go to state 18
229
+ itemlist_block go to state 20
230
+ itemlists go to state 21
231
+ itemlist_indent_blocks go to state 22
232
+ itemlistitems go to state 24
233
+ numlist_block go to state 26
234
+ numlists go to state 27
235
+ numlist_indent_blocks go to state 28
236
+ tablelines go to state 30
237
+
238
+ state 3
239
+
240
+ 2) blocks : block _
241
+
242
+ $default reduce using rule 2 (blocks)
243
+
244
+
245
+ state 4
246
+
247
+ 4) block : header _
248
+
249
+ $default reduce using rule 4 (block)
250
+
251
+
252
+ state 5
253
+
254
+ 5) block : paragraph _
255
+
256
+ $default reduce using rule 5 (block)
257
+
258
+
259
+ state 6
260
+
261
+ 6) block : quote_block _
262
+
263
+ $default reduce using rule 6 (block)
264
+
265
+
266
+ state 7
267
+
268
+ 7) block : itemlist_blocks _
269
+ 26) itemlist_blocks : itemlist_blocks _ itemlist_block
270
+
271
+ INDENT shift, and go to state 35
272
+ INDENT [reduce using rule 7 (block)]
273
+ ITEMLIST shift, and go to state 25
274
+ ITEMLIST [reduce using rule 7 (block)]
275
+ $default reduce using rule 7 (block)
276
+
277
+ itemlist_block go to state 34
278
+ itemlists go to state 21
279
+ itemlist_indent_blocks go to state 22
280
+ itemlistitems go to state 24
281
+
282
+ state 8
283
+
284
+ 8) block : numlist_blocks _
285
+ 37) numlist_blocks : numlist_blocks _ numlist_block
286
+
287
+ INDENT shift, and go to state 37
288
+ INDENT [reduce using rule 8 (block)]
289
+ NUMLIST shift, and go to state 29
290
+ NUMLIST [reduce using rule 8 (block)]
291
+ $default reduce using rule 8 (block)
292
+
293
+ numlist_block go to state 36
294
+ numlists go to state 27
295
+ numlist_indent_blocks go to state 28
296
+
297
+ state 9
298
+
299
+ 9) block : desc_block _
300
+
301
+ $default reduce using rule 9 (block)
302
+
303
+
304
+ state 10
305
+
306
+ 10) block : table_block _
307
+
308
+ $default reduce using rule 10 (block)
309
+
310
+
311
+ state 11
312
+
313
+ 11) block : headline _
314
+
315
+ $default reduce using rule 11 (block)
316
+
317
+
318
+ state 12
319
+
320
+ 12) block : WHITELINE _
321
+
322
+ $default reduce using rule 12 (block)
323
+
324
+
325
+ state 13
326
+
327
+ 13) header : HEADER _
328
+
329
+ $default reduce using rule 13 (header)
330
+
331
+
332
+ state 14
333
+
334
+ 14) headline : HEADLINE _
335
+
336
+ $default reduce using rule 14 (headline)
337
+
338
+
339
+ state 15
340
+
341
+ 15) paragraph : plain_texts _
342
+ 17) plain_texts : plain_texts _ PLAIN
343
+
344
+ PLAIN shift, and go to state 38
345
+ PLAIN [reduce using rule 15 (paragraph)]
346
+ $default reduce using rule 15 (paragraph)
347
+
348
+
349
+ state 16
350
+
351
+ 16) plain_texts : PLAIN _
352
+
353
+ $default reduce using rule 16 (plain_texts)
354
+
355
+
356
+ state 17
357
+
358
+ 18) desc_block : DESCLINE_TITLE _ desclines
359
+
360
+ DESCLINE shift, and go to state 40
361
+ DESCLINE [reduce using rule 21 (desclines)]
362
+ $default reduce using rule 21 (desclines)
363
+
364
+ desclines go to state 39
365
+
366
+ state 18
367
+
368
+ 22) quote_block : quotes _
369
+ 24) quotes : quotes _ QUOTE
370
+
371
+ QUOTE shift, and go to state 41
372
+ QUOTE [reduce using rule 22 (quote_block)]
373
+ $default reduce using rule 22 (quote_block)
374
+
375
+
376
+ state 19
377
+
378
+ 23) quotes : QUOTE _
379
+
380
+ $default reduce using rule 23 (quotes)
381
+
382
+
383
+ state 20
384
+
385
+ 25) itemlist_blocks : itemlist_block _
386
+
387
+ $default reduce using rule 25 (itemlist_blocks)
388
+
389
+
390
+ state 21
391
+
392
+ 27) itemlist_block : itemlists _
393
+ 31) itemlists : itemlists _ itemlistitems
394
+
395
+ ITEMLIST shift, and go to state 25
396
+ ITEMLIST [reduce using rule 27 (itemlist_block)]
397
+ $default reduce using rule 27 (itemlist_block)
398
+
399
+ itemlistitems go to state 42
400
+
401
+ state 22
402
+
403
+ 28) itemlist_block : itemlist_indent_blocks _
404
+
405
+ $default reduce using rule 28 (itemlist_block)
406
+
407
+
408
+ state 23
409
+
410
+ 29) itemlist_indent_blocks : INDENT _ itemlist_blocks DEDENT
411
+ 40) numlist_indent_blocks : INDENT _ numlist_blocks DEDENT
412
+
413
+ INDENT shift, and go to state 23
414
+ ITEMLIST shift, and go to state 25
415
+ NUMLIST shift, and go to state 29
416
+
417
+ itemlist_block go to state 20
418
+ itemlist_blocks go to state 43
419
+ itemlists go to state 21
420
+ itemlist_indent_blocks go to state 22
421
+ itemlistitems go to state 24
422
+ numlist_block go to state 26
423
+ numlist_blocks go to state 44
424
+ numlists go to state 27
425
+ numlist_indent_blocks go to state 28
426
+
427
+ state 24
428
+
429
+ 30) itemlists : itemlistitems _
430
+
431
+ $default reduce using rule 30 (itemlists)
432
+
433
+
434
+ state 25
435
+
436
+ 32) itemlistitems : ITEMLIST _
437
+ 33) itemlistitems : ITEMLIST _ itemlist_continues
438
+
439
+ ITEMLISTCONTINUE shift, and go to state 46
440
+ $default reduce using rule 32 (itemlistitems)
441
+
442
+ itemlist_continues go to state 45
443
+
444
+ state 26
445
+
446
+ 36) numlist_blocks : numlist_block _
447
+
448
+ $default reduce using rule 36 (numlist_blocks)
449
+
450
+
451
+ state 27
452
+
453
+ 38) numlist_block : numlists _
454
+ 42) numlists : numlists _ NUMLIST
455
+
456
+ NUMLIST shift, and go to state 47
457
+ NUMLIST [reduce using rule 38 (numlist_block)]
458
+ $default reduce using rule 38 (numlist_block)
459
+
460
+
461
+ state 28
462
+
463
+ 39) numlist_block : numlist_indent_blocks _
464
+
465
+ $default reduce using rule 39 (numlist_block)
466
+
467
+
468
+ state 29
469
+
470
+ 41) numlists : NUMLIST _
471
+
472
+ $default reduce using rule 41 (numlists)
473
+
474
+
475
+ state 30
476
+
477
+ 43) table_block : tablelines _
478
+ 45) tablelines : tablelines _ TABLELINE
479
+
480
+ TABLELINE shift, and go to state 48
481
+ TABLELINE [reduce using rule 43 (table_block)]
482
+ $default reduce using rule 43 (table_block)
483
+
484
+
485
+ state 31
486
+
487
+ 44) tablelines : TABLELINE _
488
+
489
+ $default reduce using rule 44 (tablelines)
490
+
491
+
492
+ state 32
493
+
494
+
495
+ $end shift, and go to state 49
496
+
497
+
498
+ state 33
499
+
500
+ 3) blocks : blocks block _
501
+
502
+ $default reduce using rule 3 (blocks)
503
+
504
+
505
+ state 34
506
+
507
+ 26) itemlist_blocks : itemlist_blocks itemlist_block _
508
+
509
+ $default reduce using rule 26 (itemlist_blocks)
510
+
511
+
512
+ state 35
513
+
514
+ 29) itemlist_indent_blocks : INDENT _ itemlist_blocks DEDENT
515
+
516
+ INDENT shift, and go to state 35
517
+ ITEMLIST shift, and go to state 25
518
+
519
+ itemlist_block go to state 20
520
+ itemlist_blocks go to state 43
521
+ itemlists go to state 21
522
+ itemlist_indent_blocks go to state 22
523
+ itemlistitems go to state 24
524
+
525
+ state 36
526
+
527
+ 37) numlist_blocks : numlist_blocks numlist_block _
528
+
529
+ $default reduce using rule 37 (numlist_blocks)
530
+
531
+
532
+ state 37
533
+
534
+ 40) numlist_indent_blocks : INDENT _ numlist_blocks DEDENT
535
+
536
+ INDENT shift, and go to state 37
537
+ NUMLIST shift, and go to state 29
538
+
539
+ numlist_block go to state 26
540
+ numlist_blocks go to state 44
541
+ numlists go to state 27
542
+ numlist_indent_blocks go to state 28
543
+
544
+ state 38
545
+
546
+ 17) plain_texts : plain_texts PLAIN _
547
+
548
+ $default reduce using rule 17 (plain_texts)
549
+
550
+
551
+ state 39
552
+
553
+ 18) desc_block : DESCLINE_TITLE desclines _
554
+ 20) desclines : desclines _ DESCLINE
555
+
556
+ DESCLINE shift, and go to state 50
557
+ $default reduce using rule 18 (desc_block)
558
+
559
+
560
+ state 40
561
+
562
+ 19) desclines : DESCLINE _
563
+
564
+ $default reduce using rule 19 (desclines)
565
+
566
+
567
+ state 41
568
+
569
+ 24) quotes : quotes QUOTE _
570
+
571
+ $default reduce using rule 24 (quotes)
572
+
573
+
574
+ state 42
575
+
576
+ 31) itemlists : itemlists itemlistitems _
577
+
578
+ $default reduce using rule 31 (itemlists)
579
+
580
+
581
+ state 43
582
+
583
+ 26) itemlist_blocks : itemlist_blocks _ itemlist_block
584
+ 29) itemlist_indent_blocks : INDENT itemlist_blocks _ DEDENT
585
+
586
+ INDENT shift, and go to state 35
587
+ DEDENT shift, and go to state 51
588
+ ITEMLIST shift, and go to state 25
589
+
590
+ itemlist_block go to state 34
591
+ itemlists go to state 21
592
+ itemlist_indent_blocks go to state 22
593
+ itemlistitems go to state 24
594
+
595
+ state 44
596
+
597
+ 37) numlist_blocks : numlist_blocks _ numlist_block
598
+ 40) numlist_indent_blocks : INDENT numlist_blocks _ DEDENT
599
+
600
+ INDENT shift, and go to state 37
601
+ DEDENT shift, and go to state 52
602
+ NUMLIST shift, and go to state 29
603
+
604
+ numlist_block go to state 36
605
+ numlists go to state 27
606
+ numlist_indent_blocks go to state 28
607
+
608
+ state 45
609
+
610
+ 33) itemlistitems : ITEMLIST itemlist_continues _
611
+ 35) itemlist_continues : itemlist_continues _ ITEMLISTCONTINUE
612
+
613
+ ITEMLISTCONTINUE shift, and go to state 53
614
+ $default reduce using rule 33 (itemlistitems)
615
+
616
+
617
+ state 46
618
+
619
+ 34) itemlist_continues : ITEMLISTCONTINUE _
620
+
621
+ $default reduce using rule 34 (itemlist_continues)
622
+
623
+
624
+ state 47
625
+
626
+ 42) numlists : numlists NUMLIST _
627
+
628
+ $default reduce using rule 42 (numlists)
629
+
630
+
631
+ state 48
632
+
633
+ 45) tablelines : tablelines TABLELINE _
634
+
635
+ $default reduce using rule 45 (tablelines)
636
+
637
+
638
+ state 49
639
+
640
+
641
+ $default accept
642
+
643
+
644
+ state 50
645
+
646
+ 20) desclines : desclines DESCLINE _
647
+
648
+ $default reduce using rule 20 (desclines)
649
+
650
+
651
+ state 51
652
+
653
+ 29) itemlist_indent_blocks : INDENT itemlist_blocks DEDENT _
654
+
655
+ $default reduce using rule 29 (itemlist_indent_blocks)
656
+
657
+
658
+ state 52
659
+
660
+ 40) numlist_indent_blocks : INDENT numlist_blocks DEDENT _
661
+
662
+ $default reduce using rule 40 (numlist_indent_blocks)
663
+
664
+
665
+ state 53
666
+
667
+ 35) itemlist_continues : itemlist_continues ITEMLISTCONTINUE _
668
+
669
+ $default reduce using rule 35 (itemlist_continues)
670
+