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