org-parse 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. data/.document +5 -0
  2. data/.gitignore +23 -0
  3. data/ChangeLog +4 -0
  4. data/LICENSE +20 -0
  5. data/README.rdoc +68 -0
  6. data/Rakefile +54 -0
  7. data/VERSION.yml +5 -0
  8. data/bin/org-parse +51 -0
  9. data/bin/org-test +74 -0
  10. data/doc/images/org-parse-struct_1ffae50f0c5eb867f9418df6800f40a5cc3d1751.png +0 -0
  11. data/doc/org-parse.html +203 -0
  12. data/doc/org-parse.org +71 -0
  13. data/doc/struct.dot +10 -0
  14. data/doc/struct.png +0 -0
  15. data/examples/body-only.html.erb +1 -0
  16. data/examples/dot.org-parse-rc +21 -0
  17. data/lib/org-parse/inline-parser.output +945 -0
  18. data/lib/org-parse/inline-parser.rb +219 -0
  19. data/lib/org-parse/inline-parser.ry +77 -0
  20. data/lib/org-parse/inline-parser.tab.rb +411 -0
  21. data/lib/org-parse/node.rb +329 -0
  22. data/lib/org-parse/struct-parser.output +1019 -0
  23. data/lib/org-parse/struct-parser.rb +78 -0
  24. data/lib/org-parse/struct-parser.ry +125 -0
  25. data/lib/org-parse/struct-parser.tab.rb +608 -0
  26. data/lib/org-parse/struct-scanner.rb +272 -0
  27. data/lib/org-parse/templates/single.html.erb +118 -0
  28. data/lib/org-parse/textile-visitor.rb +296 -0
  29. data/lib/org-parse/utils.rb +15 -0
  30. data/lib/org-parse/visitor.rb +542 -0
  31. data/lib/org-parse.rb +46 -0
  32. data/org-parse.gemspec +113 -0
  33. data/rakelib/racc.rake +16 -0
  34. data/test/data/blocks.org +67 -0
  35. data/test/data/emphasis.org +7 -0
  36. data/test/data/footnote.html +136 -0
  37. data/test/data/footnote.org +8 -0
  38. data/test/data/html-export.html +1062 -0
  39. data/test/data/html-export.org +342 -0
  40. data/test/data/images.html +179 -0
  41. data/test/data/images.org +30 -0
  42. data/test/data/index.org +242 -0
  43. data/test/data/lily20100228.jpg +0 -0
  44. data/test/data/lily20100228t.jpg +0 -0
  45. data/test/data/link.org +7 -0
  46. data/test/data/list_before_1st_headline.html +119 -0
  47. data/test/data/list_before_1st_headline.org +7 -0
  48. data/test/data/lists.html +284 -0
  49. data/test/data/lists.org +78 -0
  50. data/test/data/no-headline.org +6 -0
  51. data/test/data/one-headline.org +2 -0
  52. data/test/data/paragraph.org +13 -0
  53. data/test/data/quote.org +15 -0
  54. data/test/data/sections.html +173 -0
  55. data/test/data/sections.org +9 -0
  56. data/test/data/simple-list.org +6 -0
  57. data/test/data/skip_t.org +3 -0
  58. data/test/data/structure.org +53 -0
  59. data/test/data/table.org +14 -0
  60. data/test/data/test-list.org +12 -0
  61. data/test/data/text-bef-hl.org +5 -0
  62. data/test/data/text.org +6 -0
  63. data/test/data/title.html +88 -0
  64. data/test/data/title.org +6 -0
  65. data/test/data/verse.org +48 -0
  66. data/test/helper.rb +31 -0
  67. data/test/test_org-parse.rb +148 -0
  68. metadata +134 -0
@@ -0,0 +1,945 @@
1
+
2
+
3
+ -------- Grammar --------
4
+
5
+ rule 1 content: elements
6
+ rule 2 elements: elements element
7
+ rule 3 elements: element
8
+ rule 4 element: emphasis
9
+ rule 5 element: italic
10
+ rule 6 element: under_line
11
+ rule 7 element: code
12
+ rule 8 element: strike
13
+ rule 9 element: verb
14
+ rule 10 element: normal_string_element
15
+ rule 11 element: link
16
+ rule 12 element: quote
17
+ rule 13 element: fn_link
18
+ rule 14 element: fn_define
19
+ rule 15 fn_link: FN_LINK
20
+ rule 16 fn_define: FN_START elements FN_END
21
+ rule 17 emphasis: EM_OPEN elements EM_CLOSE
22
+ rule 18 italic: IT_OPEN elements IT_CLOSE
23
+ rule 19 under_line: UL_OPEN elements UL_CLOSE
24
+ rule 20 code: CODE_OPEN elements CODE_CLOSE
25
+ rule 21 verb: VERB_OPEN elements VERB_CLOSE
26
+ rule 22 strike: ST_OPEN elements ST_CLOSE
27
+ rule 23 normal_strings: normal_strings OTHER
28
+ rule 24 normal_strings: OTHER
29
+ rule 25 quote: QUOTE
30
+ rule 26 normal_string_element: normal_strings
31
+ rule 27 link_descs: link_descs link_desc
32
+ rule 28 link_descs: link_desc
33
+ rule 29 link_desc: emphasis
34
+ rule 30 link_desc: italic
35
+ rule 31 link_desc: under_line
36
+ rule 32 link_desc: code
37
+ rule 33 link_desc: normal_string_element
38
+ rule 34 link: LINK_START link_descs LINK_END
39
+ rule 35 link: LINK_URI
40
+
41
+ ------- Symbols -------
42
+
43
+ **Nonterminals, with rules where they appear
44
+
45
+ $start (25)
46
+ on right:
47
+ on left :
48
+ content (26)
49
+ on right:
50
+ on left : 1
51
+ elements (27)
52
+ on right: 1 2 16 17 18 19 20 21 22
53
+ on left : 2 3
54
+ element (28)
55
+ on right: 2 3
56
+ on left : 4 5 6 7 8 9 10 11 12 13 14
57
+ emphasis (29)
58
+ on right: 4 29
59
+ on left : 17
60
+ italic (30)
61
+ on right: 5 30
62
+ on left : 18
63
+ under_line (31)
64
+ on right: 6 31
65
+ on left : 19
66
+ code (32)
67
+ on right: 7 32
68
+ on left : 20
69
+ strike (33)
70
+ on right: 8
71
+ on left : 22
72
+ verb (34)
73
+ on right: 9
74
+ on left : 21
75
+ normal_string_element (35)
76
+ on right: 10 33
77
+ on left : 26
78
+ link (36)
79
+ on right: 11
80
+ on left : 34 35
81
+ quote (37)
82
+ on right: 12
83
+ on left : 25
84
+ fn_link (38)
85
+ on right: 13
86
+ on left : 15
87
+ fn_define (39)
88
+ on right: 14
89
+ on left : 16
90
+ normal_strings (40)
91
+ on right: 23 26
92
+ on left : 23 24
93
+ link_descs (41)
94
+ on right: 27 34
95
+ on left : 27 28
96
+ link_desc (42)
97
+ on right: 27 28
98
+ on left : 29 30 31 32 33
99
+
100
+ **Terminals, with rules where they appear
101
+
102
+ $end (0)
103
+ error (1)
104
+ EX_LOW (2)
105
+ OTHER (3) 23 24
106
+ EX_HIGH (4)
107
+ EM_OPEN (5) 17
108
+ EM_CLOSE (6) 17
109
+ LINK_START (7) 34
110
+ LINK_END (8) 34
111
+ LINK_URI (9) 35
112
+ ST_OPEN (10) 22
113
+ ST_CLOSE (11) 22
114
+ QUOTE (12) 25
115
+ FN_LINK (13) 15
116
+ FN_START (14) 16
117
+ FN_END (15) 16
118
+ IT_OPEN (16) 18
119
+ IT_CLOSE (17) 18
120
+ UL_OPEN (18) 19
121
+ UL_CLOSE (19) 19
122
+ VERB_OPEN (20) 21
123
+ VERB_CLOSE (21) 21
124
+ CODE_OPEN (22) 20
125
+ CODE_CLOSE (23) 20
126
+ EOL (24)
127
+
128
+ --------- State ---------
129
+
130
+ state 0
131
+
132
+
133
+ OTHER shift, and go to state 7
134
+ EM_OPEN shift, and go to state 13
135
+ LINK_START shift, and go to state 18
136
+ LINK_URI shift, and go to state 23
137
+ ST_OPEN shift, and go to state 26
138
+ QUOTE shift, and go to state 3
139
+ FN_LINK shift, and go to state 5
140
+ FN_START shift, and go to state 8
141
+ IT_OPEN shift, and go to state 12
142
+ UL_OPEN shift, and go to state 20
143
+ VERB_OPEN shift, and go to state 24
144
+ CODE_OPEN shift, and go to state 1
145
+
146
+ strike go to state 2
147
+ verb go to state 4
148
+ normal_string_element go to state 6
149
+ link go to state 9
150
+ content go to state 11
151
+ quote go to state 10
152
+ elements go to state 15
153
+ fn_link go to state 14
154
+ element go to state 17
155
+ fn_define go to state 16
156
+ emphasis go to state 21
157
+ normal_strings go to state 19
158
+ italic go to state 22
159
+ under_line go to state 25
160
+ code go to state 27
161
+
162
+ state 1
163
+
164
+ 20) code : CODE_OPEN _ elements CODE_CLOSE
165
+
166
+ OTHER shift, and go to state 7
167
+ EM_OPEN shift, and go to state 13
168
+ LINK_START shift, and go to state 18
169
+ LINK_URI shift, and go to state 23
170
+ ST_OPEN shift, and go to state 26
171
+ QUOTE shift, and go to state 3
172
+ FN_LINK shift, and go to state 5
173
+ FN_START shift, and go to state 8
174
+ IT_OPEN shift, and go to state 12
175
+ UL_OPEN shift, and go to state 20
176
+ VERB_OPEN shift, and go to state 24
177
+ CODE_OPEN shift, and go to state 1
178
+
179
+ strike go to state 2
180
+ verb go to state 4
181
+ normal_string_element go to state 6
182
+ link go to state 9
183
+ quote go to state 10
184
+ elements go to state 28
185
+ fn_link go to state 14
186
+ element go to state 17
187
+ fn_define go to state 16
188
+ emphasis go to state 21
189
+ normal_strings go to state 19
190
+ italic go to state 22
191
+ under_line go to state 25
192
+ code go to state 27
193
+
194
+ state 2
195
+
196
+ 8) element : strike _
197
+
198
+ $default reduce using rule 8 (element)
199
+
200
+
201
+ state 3
202
+
203
+ 25) quote : QUOTE _
204
+
205
+ $default reduce using rule 25 (quote)
206
+
207
+
208
+ state 4
209
+
210
+ 9) element : verb _
211
+
212
+ $default reduce using rule 9 (element)
213
+
214
+
215
+ state 5
216
+
217
+ 15) fn_link : FN_LINK _
218
+
219
+ $default reduce using rule 15 (fn_link)
220
+
221
+
222
+ state 6
223
+
224
+ 10) element : normal_string_element _
225
+
226
+ $default reduce using rule 10 (element)
227
+
228
+
229
+ state 7
230
+
231
+ 24) normal_strings : OTHER _
232
+
233
+ $default reduce using rule 24 (normal_strings)
234
+
235
+
236
+ state 8
237
+
238
+ 16) fn_define : FN_START _ elements FN_END
239
+
240
+ OTHER shift, and go to state 7
241
+ EM_OPEN shift, and go to state 13
242
+ LINK_START shift, and go to state 18
243
+ LINK_URI shift, and go to state 23
244
+ ST_OPEN shift, and go to state 26
245
+ QUOTE shift, and go to state 3
246
+ FN_LINK shift, and go to state 5
247
+ FN_START shift, and go to state 8
248
+ IT_OPEN shift, and go to state 12
249
+ UL_OPEN shift, and go to state 20
250
+ VERB_OPEN shift, and go to state 24
251
+ CODE_OPEN shift, and go to state 1
252
+
253
+ strike go to state 2
254
+ verb go to state 4
255
+ normal_string_element go to state 6
256
+ link go to state 9
257
+ quote go to state 10
258
+ elements go to state 29
259
+ fn_link go to state 14
260
+ element go to state 17
261
+ fn_define go to state 16
262
+ emphasis go to state 21
263
+ normal_strings go to state 19
264
+ italic go to state 22
265
+ under_line go to state 25
266
+ code go to state 27
267
+
268
+ state 9
269
+
270
+ 11) element : link _
271
+
272
+ $default reduce using rule 11 (element)
273
+
274
+
275
+ state 10
276
+
277
+ 12) element : quote _
278
+
279
+ $default reduce using rule 12 (element)
280
+
281
+
282
+ state 11
283
+
284
+
285
+ $end shift, and go to state 30
286
+
287
+
288
+ state 12
289
+
290
+ 18) italic : IT_OPEN _ elements IT_CLOSE
291
+
292
+ OTHER shift, and go to state 7
293
+ EM_OPEN shift, and go to state 13
294
+ LINK_START shift, and go to state 18
295
+ LINK_URI shift, and go to state 23
296
+ ST_OPEN shift, and go to state 26
297
+ QUOTE shift, and go to state 3
298
+ FN_LINK shift, and go to state 5
299
+ FN_START shift, and go to state 8
300
+ IT_OPEN shift, and go to state 12
301
+ UL_OPEN shift, and go to state 20
302
+ VERB_OPEN shift, and go to state 24
303
+ CODE_OPEN shift, and go to state 1
304
+
305
+ strike go to state 2
306
+ verb go to state 4
307
+ normal_string_element go to state 6
308
+ link go to state 9
309
+ quote go to state 10
310
+ elements go to state 31
311
+ fn_link go to state 14
312
+ element go to state 17
313
+ fn_define go to state 16
314
+ emphasis go to state 21
315
+ normal_strings go to state 19
316
+ italic go to state 22
317
+ under_line go to state 25
318
+ code go to state 27
319
+
320
+ state 13
321
+
322
+ 17) emphasis : EM_OPEN _ elements EM_CLOSE
323
+
324
+ OTHER shift, and go to state 7
325
+ EM_OPEN shift, and go to state 13
326
+ LINK_START shift, and go to state 18
327
+ LINK_URI shift, and go to state 23
328
+ ST_OPEN shift, and go to state 26
329
+ QUOTE shift, and go to state 3
330
+ FN_LINK shift, and go to state 5
331
+ FN_START shift, and go to state 8
332
+ IT_OPEN shift, and go to state 12
333
+ UL_OPEN shift, and go to state 20
334
+ VERB_OPEN shift, and go to state 24
335
+ CODE_OPEN shift, and go to state 1
336
+
337
+ strike go to state 2
338
+ verb go to state 4
339
+ normal_string_element go to state 6
340
+ link go to state 9
341
+ quote go to state 10
342
+ elements go to state 32
343
+ fn_link go to state 14
344
+ element go to state 17
345
+ fn_define go to state 16
346
+ emphasis go to state 21
347
+ normal_strings go to state 19
348
+ italic go to state 22
349
+ under_line go to state 25
350
+ code go to state 27
351
+
352
+ state 14
353
+
354
+ 13) element : fn_link _
355
+
356
+ $default reduce using rule 13 (element)
357
+
358
+
359
+ state 15
360
+
361
+ 1) content : elements _
362
+ 2) elements : elements _ element
363
+
364
+ OTHER shift, and go to state 7
365
+ EM_OPEN shift, and go to state 13
366
+ LINK_START shift, and go to state 18
367
+ LINK_URI shift, and go to state 23
368
+ ST_OPEN shift, and go to state 26
369
+ QUOTE shift, and go to state 3
370
+ FN_LINK shift, and go to state 5
371
+ FN_START shift, and go to state 8
372
+ IT_OPEN shift, and go to state 12
373
+ UL_OPEN shift, and go to state 20
374
+ VERB_OPEN shift, and go to state 24
375
+ CODE_OPEN shift, and go to state 1
376
+ $default reduce using rule 1 (content)
377
+
378
+ strike go to state 2
379
+ verb go to state 4
380
+ normal_string_element go to state 6
381
+ link go to state 9
382
+ quote go to state 10
383
+ fn_link go to state 14
384
+ element go to state 33
385
+ fn_define go to state 16
386
+ emphasis go to state 21
387
+ normal_strings go to state 19
388
+ italic go to state 22
389
+ under_line go to state 25
390
+ code go to state 27
391
+
392
+ state 16
393
+
394
+ 14) element : fn_define _
395
+
396
+ $default reduce using rule 14 (element)
397
+
398
+
399
+ state 17
400
+
401
+ 3) elements : element _
402
+
403
+ $default reduce using rule 3 (elements)
404
+
405
+
406
+ state 18
407
+
408
+ 34) link : LINK_START _ link_descs LINK_END
409
+
410
+ OTHER shift, and go to state 7
411
+ EM_OPEN shift, and go to state 13
412
+ IT_OPEN shift, and go to state 12
413
+ UL_OPEN shift, and go to state 20
414
+ CODE_OPEN shift, and go to state 1
415
+
416
+ normal_string_element go to state 34
417
+ normal_strings go to state 19
418
+ emphasis go to state 35
419
+ link_descs go to state 37
420
+ italic go to state 36
421
+ link_desc go to state 39
422
+ under_line go to state 38
423
+ code go to state 40
424
+
425
+ state 19
426
+
427
+ 23) normal_strings : normal_strings _ OTHER
428
+ 26) normal_string_element : normal_strings _
429
+
430
+ OTHER shift, and go to state 41
431
+ $default reduce using rule 26 (normal_string_element)
432
+
433
+
434
+ state 20
435
+
436
+ 19) under_line : UL_OPEN _ elements UL_CLOSE
437
+
438
+ OTHER shift, and go to state 7
439
+ EM_OPEN shift, and go to state 13
440
+ LINK_START shift, and go to state 18
441
+ LINK_URI shift, and go to state 23
442
+ ST_OPEN shift, and go to state 26
443
+ QUOTE shift, and go to state 3
444
+ FN_LINK shift, and go to state 5
445
+ FN_START shift, and go to state 8
446
+ IT_OPEN shift, and go to state 12
447
+ UL_OPEN shift, and go to state 20
448
+ VERB_OPEN shift, and go to state 24
449
+ CODE_OPEN shift, and go to state 1
450
+
451
+ strike go to state 2
452
+ verb go to state 4
453
+ normal_string_element go to state 6
454
+ link go to state 9
455
+ quote go to state 10
456
+ elements go to state 42
457
+ fn_link go to state 14
458
+ element go to state 17
459
+ fn_define go to state 16
460
+ emphasis go to state 21
461
+ normal_strings go to state 19
462
+ italic go to state 22
463
+ under_line go to state 25
464
+ code go to state 27
465
+
466
+ state 21
467
+
468
+ 4) element : emphasis _
469
+
470
+ $default reduce using rule 4 (element)
471
+
472
+
473
+ state 22
474
+
475
+ 5) element : italic _
476
+
477
+ $default reduce using rule 5 (element)
478
+
479
+
480
+ state 23
481
+
482
+ 35) link : LINK_URI _
483
+
484
+ $default reduce using rule 35 (link)
485
+
486
+
487
+ state 24
488
+
489
+ 21) verb : VERB_OPEN _ elements VERB_CLOSE
490
+
491
+ OTHER shift, and go to state 7
492
+ EM_OPEN shift, and go to state 13
493
+ LINK_START shift, and go to state 18
494
+ LINK_URI shift, and go to state 23
495
+ ST_OPEN shift, and go to state 26
496
+ QUOTE shift, and go to state 3
497
+ FN_LINK shift, and go to state 5
498
+ FN_START shift, and go to state 8
499
+ IT_OPEN shift, and go to state 12
500
+ UL_OPEN shift, and go to state 20
501
+ VERB_OPEN shift, and go to state 24
502
+ CODE_OPEN shift, and go to state 1
503
+
504
+ strike go to state 2
505
+ verb go to state 4
506
+ normal_string_element go to state 6
507
+ link go to state 9
508
+ quote go to state 10
509
+ elements go to state 43
510
+ fn_link go to state 14
511
+ element go to state 17
512
+ fn_define go to state 16
513
+ emphasis go to state 21
514
+ normal_strings go to state 19
515
+ italic go to state 22
516
+ under_line go to state 25
517
+ code go to state 27
518
+
519
+ state 25
520
+
521
+ 6) element : under_line _
522
+
523
+ $default reduce using rule 6 (element)
524
+
525
+
526
+ state 26
527
+
528
+ 22) strike : ST_OPEN _ elements ST_CLOSE
529
+
530
+ OTHER shift, and go to state 7
531
+ EM_OPEN shift, and go to state 13
532
+ LINK_START shift, and go to state 18
533
+ LINK_URI shift, and go to state 23
534
+ ST_OPEN shift, and go to state 26
535
+ QUOTE shift, and go to state 3
536
+ FN_LINK shift, and go to state 5
537
+ FN_START shift, and go to state 8
538
+ IT_OPEN shift, and go to state 12
539
+ UL_OPEN shift, and go to state 20
540
+ VERB_OPEN shift, and go to state 24
541
+ CODE_OPEN shift, and go to state 1
542
+
543
+ strike go to state 2
544
+ verb go to state 4
545
+ normal_string_element go to state 6
546
+ link go to state 9
547
+ quote go to state 10
548
+ elements go to state 44
549
+ fn_link go to state 14
550
+ element go to state 17
551
+ fn_define go to state 16
552
+ emphasis go to state 21
553
+ normal_strings go to state 19
554
+ italic go to state 22
555
+ under_line go to state 25
556
+ code go to state 27
557
+
558
+ state 27
559
+
560
+ 7) element : code _
561
+
562
+ $default reduce using rule 7 (element)
563
+
564
+
565
+ state 28
566
+
567
+ 2) elements : elements _ element
568
+ 20) code : CODE_OPEN elements _ CODE_CLOSE
569
+
570
+ OTHER shift, and go to state 7
571
+ EM_OPEN shift, and go to state 13
572
+ LINK_START shift, and go to state 18
573
+ LINK_URI shift, and go to state 23
574
+ ST_OPEN shift, and go to state 26
575
+ QUOTE shift, and go to state 3
576
+ FN_LINK shift, and go to state 5
577
+ FN_START shift, and go to state 8
578
+ IT_OPEN shift, and go to state 12
579
+ UL_OPEN shift, and go to state 20
580
+ VERB_OPEN shift, and go to state 24
581
+ CODE_OPEN shift, and go to state 1
582
+ CODE_CLOSE shift, and go to state 45
583
+
584
+ strike go to state 2
585
+ verb go to state 4
586
+ normal_string_element go to state 6
587
+ link go to state 9
588
+ quote go to state 10
589
+ fn_link go to state 14
590
+ element go to state 33
591
+ fn_define go to state 16
592
+ emphasis go to state 21
593
+ normal_strings go to state 19
594
+ italic go to state 22
595
+ under_line go to state 25
596
+ code go to state 27
597
+
598
+ state 29
599
+
600
+ 2) elements : elements _ element
601
+ 16) fn_define : FN_START elements _ FN_END
602
+
603
+ OTHER shift, and go to state 7
604
+ EM_OPEN shift, and go to state 13
605
+ LINK_START shift, and go to state 18
606
+ LINK_URI shift, and go to state 23
607
+ ST_OPEN shift, and go to state 26
608
+ QUOTE shift, and go to state 3
609
+ FN_LINK shift, and go to state 5
610
+ FN_START shift, and go to state 8
611
+ FN_END shift, and go to state 46
612
+ IT_OPEN shift, and go to state 12
613
+ UL_OPEN shift, and go to state 20
614
+ VERB_OPEN shift, and go to state 24
615
+ CODE_OPEN shift, and go to state 1
616
+
617
+ strike go to state 2
618
+ verb go to state 4
619
+ normal_string_element go to state 6
620
+ link go to state 9
621
+ quote go to state 10
622
+ fn_link go to state 14
623
+ element go to state 33
624
+ fn_define go to state 16
625
+ emphasis go to state 21
626
+ normal_strings go to state 19
627
+ italic go to state 22
628
+ under_line go to state 25
629
+ code go to state 27
630
+
631
+ state 30
632
+
633
+
634
+ $end shift, and go to state 47
635
+
636
+
637
+ state 31
638
+
639
+ 2) elements : elements _ element
640
+ 18) italic : IT_OPEN elements _ IT_CLOSE
641
+
642
+ OTHER shift, and go to state 7
643
+ EM_OPEN shift, and go to state 13
644
+ LINK_START shift, and go to state 18
645
+ LINK_URI shift, and go to state 23
646
+ ST_OPEN shift, and go to state 26
647
+ QUOTE shift, and go to state 3
648
+ FN_LINK shift, and go to state 5
649
+ FN_START shift, and go to state 8
650
+ IT_OPEN shift, and go to state 12
651
+ IT_CLOSE shift, and go to state 48
652
+ UL_OPEN shift, and go to state 20
653
+ VERB_OPEN shift, and go to state 24
654
+ CODE_OPEN shift, and go to state 1
655
+
656
+ strike go to state 2
657
+ verb go to state 4
658
+ normal_string_element go to state 6
659
+ link go to state 9
660
+ quote go to state 10
661
+ fn_link go to state 14
662
+ element go to state 33
663
+ fn_define go to state 16
664
+ emphasis go to state 21
665
+ normal_strings go to state 19
666
+ italic go to state 22
667
+ under_line go to state 25
668
+ code go to state 27
669
+
670
+ state 32
671
+
672
+ 2) elements : elements _ element
673
+ 17) emphasis : EM_OPEN elements _ EM_CLOSE
674
+
675
+ OTHER shift, and go to state 7
676
+ EM_OPEN shift, and go to state 13
677
+ EM_CLOSE shift, and go to state 49
678
+ LINK_START shift, and go to state 18
679
+ LINK_URI shift, and go to state 23
680
+ ST_OPEN shift, and go to state 26
681
+ QUOTE shift, and go to state 3
682
+ FN_LINK shift, and go to state 5
683
+ FN_START shift, and go to state 8
684
+ IT_OPEN shift, and go to state 12
685
+ UL_OPEN shift, and go to state 20
686
+ VERB_OPEN shift, and go to state 24
687
+ CODE_OPEN shift, and go to state 1
688
+
689
+ strike go to state 2
690
+ verb go to state 4
691
+ normal_string_element go to state 6
692
+ link go to state 9
693
+ quote go to state 10
694
+ fn_link go to state 14
695
+ element go to state 33
696
+ fn_define go to state 16
697
+ emphasis go to state 21
698
+ normal_strings go to state 19
699
+ italic go to state 22
700
+ under_line go to state 25
701
+ code go to state 27
702
+
703
+ state 33
704
+
705
+ 2) elements : elements element _
706
+
707
+ $default reduce using rule 2 (elements)
708
+
709
+
710
+ state 34
711
+
712
+ 33) link_desc : normal_string_element _
713
+
714
+ $default reduce using rule 33 (link_desc)
715
+
716
+
717
+ state 35
718
+
719
+ 29) link_desc : emphasis _
720
+
721
+ $default reduce using rule 29 (link_desc)
722
+
723
+
724
+ state 36
725
+
726
+ 30) link_desc : italic _
727
+
728
+ $default reduce using rule 30 (link_desc)
729
+
730
+
731
+ state 37
732
+
733
+ 27) link_descs : link_descs _ link_desc
734
+ 34) link : LINK_START link_descs _ LINK_END
735
+
736
+ OTHER shift, and go to state 7
737
+ EM_OPEN shift, and go to state 13
738
+ LINK_END shift, and go to state 50
739
+ IT_OPEN shift, and go to state 12
740
+ UL_OPEN shift, and go to state 20
741
+ CODE_OPEN shift, and go to state 1
742
+
743
+ normal_string_element go to state 34
744
+ normal_strings go to state 19
745
+ emphasis go to state 35
746
+ italic go to state 36
747
+ link_desc go to state 51
748
+ under_line go to state 38
749
+ code go to state 40
750
+
751
+ state 38
752
+
753
+ 31) link_desc : under_line _
754
+
755
+ $default reduce using rule 31 (link_desc)
756
+
757
+
758
+ state 39
759
+
760
+ 28) link_descs : link_desc _
761
+
762
+ $default reduce using rule 28 (link_descs)
763
+
764
+
765
+ state 40
766
+
767
+ 32) link_desc : code _
768
+
769
+ $default reduce using rule 32 (link_desc)
770
+
771
+
772
+ state 41
773
+
774
+ 23) normal_strings : normal_strings OTHER _
775
+
776
+ $default reduce using rule 23 (normal_strings)
777
+
778
+
779
+ state 42
780
+
781
+ 2) elements : elements _ element
782
+ 19) under_line : UL_OPEN elements _ UL_CLOSE
783
+
784
+ OTHER shift, and go to state 7
785
+ EM_OPEN shift, and go to state 13
786
+ LINK_START shift, and go to state 18
787
+ LINK_URI shift, and go to state 23
788
+ ST_OPEN shift, and go to state 26
789
+ QUOTE shift, and go to state 3
790
+ FN_LINK shift, and go to state 5
791
+ FN_START shift, and go to state 8
792
+ IT_OPEN shift, and go to state 12
793
+ UL_OPEN shift, and go to state 20
794
+ UL_CLOSE shift, and go to state 52
795
+ VERB_OPEN shift, and go to state 24
796
+ CODE_OPEN shift, and go to state 1
797
+
798
+ strike go to state 2
799
+ verb go to state 4
800
+ normal_string_element go to state 6
801
+ link go to state 9
802
+ quote go to state 10
803
+ fn_link go to state 14
804
+ element go to state 33
805
+ fn_define go to state 16
806
+ emphasis go to state 21
807
+ normal_strings go to state 19
808
+ italic go to state 22
809
+ under_line go to state 25
810
+ code go to state 27
811
+
812
+ state 43
813
+
814
+ 2) elements : elements _ element
815
+ 21) verb : VERB_OPEN elements _ VERB_CLOSE
816
+
817
+ OTHER shift, and go to state 7
818
+ EM_OPEN shift, and go to state 13
819
+ LINK_START shift, and go to state 18
820
+ LINK_URI shift, and go to state 23
821
+ ST_OPEN shift, and go to state 26
822
+ QUOTE shift, and go to state 3
823
+ FN_LINK shift, and go to state 5
824
+ FN_START shift, and go to state 8
825
+ IT_OPEN shift, and go to state 12
826
+ UL_OPEN shift, and go to state 20
827
+ VERB_OPEN shift, and go to state 24
828
+ VERB_CLOSE shift, and go to state 53
829
+ CODE_OPEN shift, and go to state 1
830
+
831
+ strike go to state 2
832
+ verb go to state 4
833
+ normal_string_element go to state 6
834
+ link go to state 9
835
+ quote go to state 10
836
+ fn_link go to state 14
837
+ element go to state 33
838
+ fn_define go to state 16
839
+ emphasis go to state 21
840
+ normal_strings go to state 19
841
+ italic go to state 22
842
+ under_line go to state 25
843
+ code go to state 27
844
+
845
+ state 44
846
+
847
+ 2) elements : elements _ element
848
+ 22) strike : ST_OPEN elements _ ST_CLOSE
849
+
850
+ OTHER shift, and go to state 7
851
+ EM_OPEN shift, and go to state 13
852
+ LINK_START shift, and go to state 18
853
+ LINK_URI shift, and go to state 23
854
+ ST_OPEN shift, and go to state 26
855
+ ST_CLOSE shift, and go to state 54
856
+ QUOTE shift, and go to state 3
857
+ FN_LINK shift, and go to state 5
858
+ FN_START shift, and go to state 8
859
+ IT_OPEN shift, and go to state 12
860
+ UL_OPEN shift, and go to state 20
861
+ VERB_OPEN shift, and go to state 24
862
+ CODE_OPEN shift, and go to state 1
863
+
864
+ strike go to state 2
865
+ verb go to state 4
866
+ normal_string_element go to state 6
867
+ link go to state 9
868
+ quote go to state 10
869
+ fn_link go to state 14
870
+ element go to state 33
871
+ fn_define go to state 16
872
+ emphasis go to state 21
873
+ normal_strings go to state 19
874
+ italic go to state 22
875
+ under_line go to state 25
876
+ code go to state 27
877
+
878
+ state 45
879
+
880
+ 20) code : CODE_OPEN elements CODE_CLOSE _
881
+
882
+ $default reduce using rule 20 (code)
883
+
884
+
885
+ state 46
886
+
887
+ 16) fn_define : FN_START elements FN_END _
888
+
889
+ $default reduce using rule 16 (fn_define)
890
+
891
+
892
+ state 47
893
+
894
+
895
+ $default accept
896
+
897
+
898
+ state 48
899
+
900
+ 18) italic : IT_OPEN elements IT_CLOSE _
901
+
902
+ $default reduce using rule 18 (italic)
903
+
904
+
905
+ state 49
906
+
907
+ 17) emphasis : EM_OPEN elements EM_CLOSE _
908
+
909
+ $default reduce using rule 17 (emphasis)
910
+
911
+
912
+ state 50
913
+
914
+ 34) link : LINK_START link_descs LINK_END _
915
+
916
+ $default reduce using rule 34 (link)
917
+
918
+
919
+ state 51
920
+
921
+ 27) link_descs : link_descs link_desc _
922
+
923
+ $default reduce using rule 27 (link_descs)
924
+
925
+
926
+ state 52
927
+
928
+ 19) under_line : UL_OPEN elements UL_CLOSE _
929
+
930
+ $default reduce using rule 19 (under_line)
931
+
932
+
933
+ state 53
934
+
935
+ 21) verb : VERB_OPEN elements VERB_CLOSE _
936
+
937
+ $default reduce using rule 21 (verb)
938
+
939
+
940
+ state 54
941
+
942
+ 22) strike : ST_OPEN elements ST_CLOSE _
943
+
944
+ $default reduce using rule 22 (strike)
945
+