rdoc 6.2.0 → 6.2.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.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Rakefile +11 -3
- data/lib/rdoc/comment.rb +5 -0
- data/lib/rdoc/cross_reference.rb +2 -2
- data/lib/rdoc/generator/darkfish.rb +6 -6
- data/lib/rdoc/markdown.rb +16287 -0
- data/lib/rdoc/markdown/literals.rb +417 -0
- data/lib/rdoc/options.rb +18 -3
- data/lib/rdoc/parser/ruby.rb +15 -5
- data/lib/rdoc/rd/block_parser.rb +1056 -0
- data/lib/rdoc/rd/inline_parser.rb +1208 -0
- data/lib/rdoc/version.rb +1 -1
- data/rdoc.gemspec +193 -3
- metadata +4 -6
- data/.document +0 -5
- data/.gitignore +0 -15
@@ -0,0 +1,1208 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
#
|
3
|
+
# DO NOT MODIFY!!!!
|
4
|
+
# This file is automatically generated by Racc 1.4.16
|
5
|
+
# from Racc grammar file "".
|
6
|
+
#
|
7
|
+
|
8
|
+
require 'racc/parser.rb'
|
9
|
+
|
10
|
+
require 'strscan'
|
11
|
+
|
12
|
+
class RDoc::RD
|
13
|
+
|
14
|
+
##
|
15
|
+
# RD format parser for inline markup such as emphasis, links, footnotes, etc.
|
16
|
+
|
17
|
+
class InlineParser < Racc::Parser
|
18
|
+
|
19
|
+
|
20
|
+
# :stopdoc:
|
21
|
+
|
22
|
+
EM_OPEN = '((*'
|
23
|
+
EM_OPEN_RE = /\A#{Regexp.quote(EM_OPEN)}/
|
24
|
+
EM_CLOSE = '*))'
|
25
|
+
EM_CLOSE_RE = /\A#{Regexp.quote(EM_CLOSE)}/
|
26
|
+
CODE_OPEN = '(({'
|
27
|
+
CODE_OPEN_RE = /\A#{Regexp.quote(CODE_OPEN)}/
|
28
|
+
CODE_CLOSE = '}))'
|
29
|
+
CODE_CLOSE_RE = /\A#{Regexp.quote(CODE_CLOSE)}/
|
30
|
+
VAR_OPEN = '((|'
|
31
|
+
VAR_OPEN_RE = /\A#{Regexp.quote(VAR_OPEN)}/
|
32
|
+
VAR_CLOSE = '|))'
|
33
|
+
VAR_CLOSE_RE = /\A#{Regexp.quote(VAR_CLOSE)}/
|
34
|
+
KBD_OPEN = '((%'
|
35
|
+
KBD_OPEN_RE = /\A#{Regexp.quote(KBD_OPEN)}/
|
36
|
+
KBD_CLOSE = '%))'
|
37
|
+
KBD_CLOSE_RE = /\A#{Regexp.quote(KBD_CLOSE)}/
|
38
|
+
INDEX_OPEN = '((:'
|
39
|
+
INDEX_OPEN_RE = /\A#{Regexp.quote(INDEX_OPEN)}/
|
40
|
+
INDEX_CLOSE = ':))'
|
41
|
+
INDEX_CLOSE_RE = /\A#{Regexp.quote(INDEX_CLOSE)}/
|
42
|
+
REF_OPEN = '((<'
|
43
|
+
REF_OPEN_RE = /\A#{Regexp.quote(REF_OPEN)}/
|
44
|
+
REF_CLOSE = '>))'
|
45
|
+
REF_CLOSE_RE = /\A#{Regexp.quote(REF_CLOSE)}/
|
46
|
+
FOOTNOTE_OPEN = '((-'
|
47
|
+
FOOTNOTE_OPEN_RE = /\A#{Regexp.quote(FOOTNOTE_OPEN)}/
|
48
|
+
FOOTNOTE_CLOSE = '-))'
|
49
|
+
FOOTNOTE_CLOSE_RE = /\A#{Regexp.quote(FOOTNOTE_CLOSE)}/
|
50
|
+
VERB_OPEN = "(('"
|
51
|
+
VERB_OPEN_RE = /\A#{Regexp.quote(VERB_OPEN)}/
|
52
|
+
VERB_CLOSE = "'))"
|
53
|
+
VERB_CLOSE_RE = /\A#{Regexp.quote(VERB_CLOSE)}/
|
54
|
+
|
55
|
+
BAR = "|"
|
56
|
+
BAR_RE = /\A#{Regexp.quote(BAR)}/
|
57
|
+
QUOTE = '"'
|
58
|
+
QUOTE_RE = /\A#{Regexp.quote(QUOTE)}/
|
59
|
+
SLASH = "/"
|
60
|
+
SLASH_RE = /\A#{Regexp.quote(SLASH)}/
|
61
|
+
BACK_SLASH = "\\"
|
62
|
+
BACK_SLASH_RE = /\A#{Regexp.quote(BACK_SLASH)}/
|
63
|
+
URL = "URL:"
|
64
|
+
URL_RE = /\A#{Regexp.quote(URL)}/
|
65
|
+
|
66
|
+
other_re_mode = Regexp::EXTENDED
|
67
|
+
other_re_mode |= Regexp::MULTILINE
|
68
|
+
|
69
|
+
OTHER_RE = Regexp.new(
|
70
|
+
"\\A.+?(?=#{Regexp.quote(EM_OPEN)}|#{Regexp.quote(EM_CLOSE)}|
|
71
|
+
#{Regexp.quote(CODE_OPEN)}|#{Regexp.quote(CODE_CLOSE)}|
|
72
|
+
#{Regexp.quote(VAR_OPEN)}|#{Regexp.quote(VAR_CLOSE)}|
|
73
|
+
#{Regexp.quote(KBD_OPEN)}|#{Regexp.quote(KBD_CLOSE)}|
|
74
|
+
#{Regexp.quote(INDEX_OPEN)}|#{Regexp.quote(INDEX_CLOSE)}|
|
75
|
+
#{Regexp.quote(REF_OPEN)}|#{Regexp.quote(REF_CLOSE)}|
|
76
|
+
#{Regexp.quote(FOOTNOTE_OPEN)}|#{Regexp.quote(FOOTNOTE_CLOSE)}|
|
77
|
+
#{Regexp.quote(VERB_OPEN)}|#{Regexp.quote(VERB_CLOSE)}|
|
78
|
+
#{Regexp.quote(BAR)}|
|
79
|
+
#{Regexp.quote(QUOTE)}|
|
80
|
+
#{Regexp.quote(SLASH)}|
|
81
|
+
#{Regexp.quote(BACK_SLASH)}|
|
82
|
+
#{Regexp.quote(URL)})", other_re_mode)
|
83
|
+
|
84
|
+
# :startdoc:
|
85
|
+
|
86
|
+
##
|
87
|
+
# Creates a new parser for inline markup in the rd format. The +block_parser+
|
88
|
+
# is used to for footnotes and labels in the inline text.
|
89
|
+
|
90
|
+
def initialize block_parser
|
91
|
+
@block_parser = block_parser
|
92
|
+
end
|
93
|
+
|
94
|
+
##
|
95
|
+
# Parses the +inline+ text from RD format into RDoc format.
|
96
|
+
|
97
|
+
def parse inline
|
98
|
+
@inline = inline
|
99
|
+
@src = StringScanner.new inline
|
100
|
+
@pre = "".dup
|
101
|
+
@yydebug = true
|
102
|
+
do_parse.to_s
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Returns the next token from the inline text
|
107
|
+
|
108
|
+
def next_token
|
109
|
+
return [false, false] if @src.eos?
|
110
|
+
# p @src.rest if @yydebug
|
111
|
+
if ret = @src.scan(EM_OPEN_RE)
|
112
|
+
@pre << ret
|
113
|
+
[:EM_OPEN, ret]
|
114
|
+
elsif ret = @src.scan(EM_CLOSE_RE)
|
115
|
+
@pre << ret
|
116
|
+
[:EM_CLOSE, ret]
|
117
|
+
elsif ret = @src.scan(CODE_OPEN_RE)
|
118
|
+
@pre << ret
|
119
|
+
[:CODE_OPEN, ret]
|
120
|
+
elsif ret = @src.scan(CODE_CLOSE_RE)
|
121
|
+
@pre << ret
|
122
|
+
[:CODE_CLOSE, ret]
|
123
|
+
elsif ret = @src.scan(VAR_OPEN_RE)
|
124
|
+
@pre << ret
|
125
|
+
[:VAR_OPEN, ret]
|
126
|
+
elsif ret = @src.scan(VAR_CLOSE_RE)
|
127
|
+
@pre << ret
|
128
|
+
[:VAR_CLOSE, ret]
|
129
|
+
elsif ret = @src.scan(KBD_OPEN_RE)
|
130
|
+
@pre << ret
|
131
|
+
[:KBD_OPEN, ret]
|
132
|
+
elsif ret = @src.scan(KBD_CLOSE_RE)
|
133
|
+
@pre << ret
|
134
|
+
[:KBD_CLOSE, ret]
|
135
|
+
elsif ret = @src.scan(INDEX_OPEN_RE)
|
136
|
+
@pre << ret
|
137
|
+
[:INDEX_OPEN, ret]
|
138
|
+
elsif ret = @src.scan(INDEX_CLOSE_RE)
|
139
|
+
@pre << ret
|
140
|
+
[:INDEX_CLOSE, ret]
|
141
|
+
elsif ret = @src.scan(REF_OPEN_RE)
|
142
|
+
@pre << ret
|
143
|
+
[:REF_OPEN, ret]
|
144
|
+
elsif ret = @src.scan(REF_CLOSE_RE)
|
145
|
+
@pre << ret
|
146
|
+
[:REF_CLOSE, ret]
|
147
|
+
elsif ret = @src.scan(FOOTNOTE_OPEN_RE)
|
148
|
+
@pre << ret
|
149
|
+
[:FOOTNOTE_OPEN, ret]
|
150
|
+
elsif ret = @src.scan(FOOTNOTE_CLOSE_RE)
|
151
|
+
@pre << ret
|
152
|
+
[:FOOTNOTE_CLOSE, ret]
|
153
|
+
elsif ret = @src.scan(VERB_OPEN_RE)
|
154
|
+
@pre << ret
|
155
|
+
[:VERB_OPEN, ret]
|
156
|
+
elsif ret = @src.scan(VERB_CLOSE_RE)
|
157
|
+
@pre << ret
|
158
|
+
[:VERB_CLOSE, ret]
|
159
|
+
elsif ret = @src.scan(BAR_RE)
|
160
|
+
@pre << ret
|
161
|
+
[:BAR, ret]
|
162
|
+
elsif ret = @src.scan(QUOTE_RE)
|
163
|
+
@pre << ret
|
164
|
+
[:QUOTE, ret]
|
165
|
+
elsif ret = @src.scan(SLASH_RE)
|
166
|
+
@pre << ret
|
167
|
+
[:SLASH, ret]
|
168
|
+
elsif ret = @src.scan(BACK_SLASH_RE)
|
169
|
+
@pre << ret
|
170
|
+
[:BACK_SLASH, ret]
|
171
|
+
elsif ret = @src.scan(URL_RE)
|
172
|
+
@pre << ret
|
173
|
+
[:URL, ret]
|
174
|
+
elsif ret = @src.scan(OTHER_RE)
|
175
|
+
@pre << ret
|
176
|
+
[:OTHER, ret]
|
177
|
+
else
|
178
|
+
ret = @src.rest
|
179
|
+
@pre << ret
|
180
|
+
@src.terminate
|
181
|
+
[:OTHER, ret]
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# Raises a ParseError when invalid formatting is found
|
187
|
+
|
188
|
+
def on_error(et, ev, values)
|
189
|
+
lines_of_rest = @src.rest.lines.to_a.length
|
190
|
+
prev_words = prev_words_on_error(ev)
|
191
|
+
at = 4 + prev_words.length
|
192
|
+
|
193
|
+
message = <<-MSG
|
194
|
+
RD syntax error: line #{@block_parser.line_index - lines_of_rest}:
|
195
|
+
...#{prev_words} #{(ev||'')} #{next_words_on_error()} ...
|
196
|
+
MSG
|
197
|
+
|
198
|
+
message << " " * at + "^" * (ev ? ev.length : 0) + "\n"
|
199
|
+
raise ParseError, message
|
200
|
+
end
|
201
|
+
|
202
|
+
##
|
203
|
+
# Returns words before the error
|
204
|
+
|
205
|
+
def prev_words_on_error(ev)
|
206
|
+
pre = @pre
|
207
|
+
if ev and /#{Regexp.quote(ev)}$/ =~ pre
|
208
|
+
pre = $`
|
209
|
+
end
|
210
|
+
last_line(pre)
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# Returns the last line of +src+
|
215
|
+
|
216
|
+
def last_line(src)
|
217
|
+
if n = src.rindex("\n")
|
218
|
+
src[(n+1) .. -1]
|
219
|
+
else
|
220
|
+
src
|
221
|
+
end
|
222
|
+
end
|
223
|
+
private :last_line
|
224
|
+
|
225
|
+
##
|
226
|
+
# Returns words following an error
|
227
|
+
|
228
|
+
def next_words_on_error
|
229
|
+
if n = @src.rest.index("\n")
|
230
|
+
@src.rest[0 .. (n-1)]
|
231
|
+
else
|
232
|
+
@src.rest
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
##
|
237
|
+
# Creates a new RDoc::RD::Inline for the +rdoc+ markup and the raw +reference+
|
238
|
+
|
239
|
+
def inline rdoc, reference = rdoc
|
240
|
+
RDoc::RD::Inline.new rdoc, reference
|
241
|
+
end
|
242
|
+
|
243
|
+
# :stopdoc:
|
244
|
+
##### State transition tables begin ###
|
245
|
+
|
246
|
+
racc_action_table = [
|
247
|
+
104, 103, 102, 100, 101, 99, 115, 116, 117, 29,
|
248
|
+
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
|
249
|
+
84, 118, 119, 63, 64, 65, 61, 81, 62, 76,
|
250
|
+
78, 79, 85, 66, 67, 68, 69, 70, 71, 72,
|
251
|
+
73, 74, 75, 77, 80, 149, 63, 64, 65, 153,
|
252
|
+
81, 62, 76, 78, 79, 86, 66, 67, 68, 69,
|
253
|
+
70, 71, 72, 73, 74, 75, 77, 80, 152, 104,
|
254
|
+
103, 102, 100, 101, 99, 115, 116, 117, 87, 105,
|
255
|
+
106, 107, 108, 109, 110, 111, 112, 113, 114, 88,
|
256
|
+
118, 119, 104, 103, 102, 100, 101, 99, 115, 116,
|
257
|
+
117, 89, 105, 106, 107, 108, 109, 110, 111, 112,
|
258
|
+
113, 114, 96, 118, 119, 104, 103, 102, 100, 101,
|
259
|
+
99, 115, 116, 117, 124, 105, 106, 107, 108, 109,
|
260
|
+
110, 111, 112, 113, 114, 137, 118, 119, 22, 23,
|
261
|
+
24, 25, 26, 21, 18, 19, 176, 177, 13, 148,
|
262
|
+
14, 154, 15, 137, 16, 161, 17, 164, 173, 20,
|
263
|
+
22, 23, 24, 25, 26, 21, 18, 19, 175, 177,
|
264
|
+
13, nil, 14, nil, 15, nil, 16, nil, 17, nil,
|
265
|
+
nil, 20, 22, 23, 24, 25, 26, 21, 18, 19,
|
266
|
+
nil, nil, 13, nil, 14, nil, 15, nil, 16, nil,
|
267
|
+
17, nil, nil, 20, 22, 23, 24, 25, 26, 21,
|
268
|
+
18, 19, nil, nil, 13, nil, 14, nil, 15, nil,
|
269
|
+
16, nil, 17, nil, nil, 20, 22, 23, 24, 25,
|
270
|
+
26, 21, 18, 19, nil, nil, 13, nil, 14, nil,
|
271
|
+
15, nil, 16, nil, 17, nil, nil, 20, 22, 23,
|
272
|
+
24, 25, 26, 21, 18, 19, nil, nil, 13, nil,
|
273
|
+
14, nil, 15, nil, 16, nil, 17, nil, nil, 20,
|
274
|
+
22, 23, 24, 25, 26, 21, 18, 19, nil, nil,
|
275
|
+
13, nil, 14, nil, 15, nil, 16, nil, 17, 42,
|
276
|
+
nil, 20, 54, 38, 53, 55, 56, 57, nil, 13,
|
277
|
+
nil, 14, nil, 15, nil, 16, nil, 17, nil, nil,
|
278
|
+
20, 22, 23, 24, 25, 26, 21, 18, 19, nil,
|
279
|
+
nil, 13, nil, 14, nil, 15, nil, 16, nil, 17,
|
280
|
+
nil, nil, 20, 63, 64, 65, 61, 81, 62, 76,
|
281
|
+
78, 79, nil, 66, 67, 68, 69, 70, 71, 72,
|
282
|
+
73, 74, 75, 77, 80, 122, nil, nil, 54, nil,
|
283
|
+
53, 55, 56, 57, nil, 13, nil, 14, nil, 15,
|
284
|
+
nil, 16, nil, 17, 145, nil, 20, 54, 133, 53,
|
285
|
+
55, 56, 57, nil, 13, nil, 14, nil, 15, nil,
|
286
|
+
16, nil, 17, 145, nil, 20, 54, 133, 53, 55,
|
287
|
+
56, 57, nil, 13, nil, 14, nil, 15, nil, 16,
|
288
|
+
nil, 17, 145, nil, 20, 54, 133, 53, 55, 56,
|
289
|
+
57, nil, 13, nil, 14, nil, 15, nil, 16, nil,
|
290
|
+
17, 145, nil, 20, 54, 133, 53, 55, 56, 57,
|
291
|
+
nil, 13, nil, 14, nil, 15, nil, 16, nil, 17,
|
292
|
+
nil, nil, 20, 135, 136, 54, 133, 53, 55, 56,
|
293
|
+
57, nil, 13, nil, 14, nil, 15, nil, 16, nil,
|
294
|
+
17, nil, nil, 20, 135, 136, 54, 133, 53, 55,
|
295
|
+
56, 57, nil, 13, nil, 14, nil, 15, nil, 16,
|
296
|
+
nil, 17, nil, nil, 20, 135, 136, 54, 133, 53,
|
297
|
+
55, 56, 57, nil, 13, nil, 14, nil, 15, nil,
|
298
|
+
16, nil, 17, 95, nil, 20, 54, 91, 53, 55,
|
299
|
+
56, 57, 145, nil, nil, 54, 133, 53, 55, 56,
|
300
|
+
57, 158, nil, nil, 54, nil, 53, 55, 56, 57,
|
301
|
+
165, 135, 136, 54, 133, 53, 55, 56, 57, 145,
|
302
|
+
nil, nil, 54, 133, 53, 55, 56, 57, 172, 135,
|
303
|
+
136, 54, 133, 53, 55, 56, 57, 174, 135, 136,
|
304
|
+
54, 133, 53, 55, 56, 57, 178, 135, 136, 54,
|
305
|
+
133, 53, 55, 56, 57, 135, 136, 54, 133, 53,
|
306
|
+
55, 56, 57, 135, 136, 54, 133, 53, 55, 56,
|
307
|
+
57, 135, 136, 54, 133, 53, 55, 56, 57, 22,
|
308
|
+
23, 24, 25, 26, 21 ]
|
309
|
+
|
310
|
+
racc_action_check = [
|
311
|
+
38, 38, 38, 38, 38, 38, 38, 38, 38, 1,
|
312
|
+
38, 38, 38, 38, 38, 38, 38, 38, 38, 38,
|
313
|
+
29, 38, 38, 59, 59, 59, 59, 59, 59, 59,
|
314
|
+
59, 59, 31, 59, 59, 59, 59, 59, 59, 59,
|
315
|
+
59, 59, 59, 59, 59, 59, 61, 61, 61, 61,
|
316
|
+
61, 61, 61, 61, 61, 32, 61, 61, 61, 61,
|
317
|
+
61, 61, 61, 61, 61, 61, 61, 61, 61, 91,
|
318
|
+
91, 91, 91, 91, 91, 91, 91, 91, 33, 91,
|
319
|
+
91, 91, 91, 91, 91, 91, 91, 91, 91, 34,
|
320
|
+
91, 91, 97, 97, 97, 97, 97, 97, 97, 97,
|
321
|
+
97, 35, 97, 97, 97, 97, 97, 97, 97, 97,
|
322
|
+
97, 97, 37, 97, 97, 155, 155, 155, 155, 155,
|
323
|
+
155, 155, 155, 155, 41, 155, 155, 155, 155, 155,
|
324
|
+
155, 155, 155, 155, 155, 43, 155, 155, 0, 0,
|
325
|
+
0, 0, 0, 0, 0, 0, 165, 165, 0, 58,
|
326
|
+
0, 90, 0, 94, 0, 100, 0, 125, 162, 0,
|
327
|
+
2, 2, 2, 2, 2, 2, 2, 2, 164, 172,
|
328
|
+
2, nil, 2, nil, 2, nil, 2, nil, 2, nil,
|
329
|
+
nil, 2, 13, 13, 13, 13, 13, 13, 13, 13,
|
330
|
+
nil, nil, 13, nil, 13, nil, 13, nil, 13, nil,
|
331
|
+
13, nil, nil, 13, 14, 14, 14, 14, 14, 14,
|
332
|
+
14, 14, nil, nil, 14, nil, 14, nil, 14, nil,
|
333
|
+
14, nil, 14, nil, nil, 14, 15, 15, 15, 15,
|
334
|
+
15, 15, 15, 15, nil, nil, 15, nil, 15, nil,
|
335
|
+
15, nil, 15, nil, 15, nil, nil, 15, 16, 16,
|
336
|
+
16, 16, 16, 16, 16, 16, nil, nil, 16, nil,
|
337
|
+
16, nil, 16, nil, 16, nil, 16, nil, nil, 16,
|
338
|
+
17, 17, 17, 17, 17, 17, 17, 17, nil, nil,
|
339
|
+
17, nil, 17, nil, 17, nil, 17, nil, 17, 18,
|
340
|
+
nil, 17, 18, 18, 18, 18, 18, 18, nil, 18,
|
341
|
+
nil, 18, nil, 18, nil, 18, nil, 18, nil, nil,
|
342
|
+
18, 19, 19, 19, 19, 19, 19, 19, 19, nil,
|
343
|
+
nil, 19, nil, 19, nil, 19, nil, 19, nil, 19,
|
344
|
+
nil, nil, 19, 20, 20, 20, 20, 20, 20, 20,
|
345
|
+
20, 20, nil, 20, 20, 20, 20, 20, 20, 20,
|
346
|
+
20, 20, 20, 20, 20, 39, nil, nil, 39, nil,
|
347
|
+
39, 39, 39, 39, nil, 39, nil, 39, nil, 39,
|
348
|
+
nil, 39, nil, 39, 44, nil, 39, 44, 44, 44,
|
349
|
+
44, 44, 44, nil, 44, nil, 44, nil, 44, nil,
|
350
|
+
44, nil, 44, 45, nil, 44, 45, 45, 45, 45,
|
351
|
+
45, 45, nil, 45, nil, 45, nil, 45, nil, 45,
|
352
|
+
nil, 45, 138, nil, 45, 138, 138, 138, 138, 138,
|
353
|
+
138, nil, 138, nil, 138, nil, 138, nil, 138, nil,
|
354
|
+
138, 146, nil, 138, 146, 146, 146, 146, 146, 146,
|
355
|
+
nil, 146, nil, 146, nil, 146, nil, 146, nil, 146,
|
356
|
+
nil, nil, 146, 42, 42, 42, 42, 42, 42, 42,
|
357
|
+
42, nil, 42, nil, 42, nil, 42, nil, 42, nil,
|
358
|
+
42, nil, nil, 42, 122, 122, 122, 122, 122, 122,
|
359
|
+
122, 122, nil, 122, nil, 122, nil, 122, nil, 122,
|
360
|
+
nil, 122, nil, nil, 122, 127, 127, 127, 127, 127,
|
361
|
+
127, 127, 127, nil, 127, nil, 127, nil, 127, nil,
|
362
|
+
127, nil, 127, 36, nil, 127, 36, 36, 36, 36,
|
363
|
+
36, 36, 52, nil, nil, 52, 52, 52, 52, 52,
|
364
|
+
52, 92, nil, nil, 92, nil, 92, 92, 92, 92,
|
365
|
+
126, 126, 126, 126, 126, 126, 126, 126, 126, 142,
|
366
|
+
nil, nil, 142, 142, 142, 142, 142, 142, 159, 159,
|
367
|
+
159, 159, 159, 159, 159, 159, 159, 163, 163, 163,
|
368
|
+
163, 163, 163, 163, 163, 163, 171, 171, 171, 171,
|
369
|
+
171, 171, 171, 171, 171, 95, 95, 95, 95, 95,
|
370
|
+
95, 95, 95, 158, 158, 158, 158, 158, 158, 158,
|
371
|
+
158, 168, 168, 168, 168, 168, 168, 168, 168, 27,
|
372
|
+
27, 27, 27, 27, 27 ]
|
373
|
+
|
374
|
+
racc_action_pointer = [
|
375
|
+
135, 9, 157, nil, nil, nil, nil, nil, nil, nil,
|
376
|
+
nil, nil, nil, 179, 201, 223, 245, 267, 286, 308,
|
377
|
+
330, nil, nil, nil, nil, nil, nil, 606, nil, 20,
|
378
|
+
nil, 18, 39, 60, 69, 79, 510, 89, -3, 352,
|
379
|
+
nil, 120, 449, 130, 371, 390, nil, nil, nil, nil,
|
380
|
+
nil, nil, 519, nil, nil, nil, nil, nil, 138, 20,
|
381
|
+
nil, 43, nil, nil, nil, nil, nil, nil, nil, nil,
|
382
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
383
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
384
|
+
128, 66, 528, nil, 148, 581, nil, 89, nil, nil,
|
385
|
+
149, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
386
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
387
|
+
nil, nil, 470, nil, nil, 154, 537, 491, nil, nil,
|
388
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 409, nil,
|
389
|
+
nil, nil, 546, nil, nil, nil, 428, nil, nil, nil,
|
390
|
+
nil, nil, nil, nil, nil, 112, nil, nil, 589, 555,
|
391
|
+
nil, nil, 155, 564, 164, 142, nil, nil, 597, nil,
|
392
|
+
nil, 573, 164, nil, nil, nil, nil, nil, nil ]
|
393
|
+
|
394
|
+
racc_action_default = [
|
395
|
+
-138, -138, -1, -3, -4, -5, -6, -7, -8, -9,
|
396
|
+
-10, -11, -12, -138, -138, -138, -138, -138, -138, -138,
|
397
|
+
-138, -103, -104, -105, -106, -107, -108, -111, -110, -138,
|
398
|
+
-2, -138, -138, -138, -138, -138, -138, -138, -138, -27,
|
399
|
+
-26, -35, -138, -58, -41, -40, -47, -48, -49, -50,
|
400
|
+
-51, -52, -63, -66, -67, -68, -69, -70, -138, -138,
|
401
|
+
-112, -138, -116, -117, -118, -119, -120, -121, -122, -123,
|
402
|
+
-124, -125, -126, -127, -128, -129, -130, -131, -132, -133,
|
403
|
+
-134, -135, -137, -109, 179, -13, -14, -15, -16, -17,
|
404
|
+
-138, -138, -23, -22, -33, -138, -19, -24, -79, -80,
|
405
|
+
-138, -82, -83, -84, -85, -86, -87, -88, -89, -90,
|
406
|
+
-91, -92, -93, -94, -95, -96, -97, -98, -99, -100,
|
407
|
+
-25, -35, -138, -58, -28, -138, -59, -42, -46, -55,
|
408
|
+
-56, -65, -71, -72, -75, -76, -77, -31, -38, -44,
|
409
|
+
-53, -54, -57, -61, -73, -74, -39, -62, -101, -102,
|
410
|
+
-136, -113, -114, -115, -18, -20, -21, -33, -138, -138,
|
411
|
+
-78, -81, -138, -59, -36, -37, -64, -45, -59, -43,
|
412
|
+
-60, -138, -34, -36, -37, -29, -30, -32, -34 ]
|
413
|
+
|
414
|
+
racc_goto_table = [
|
415
|
+
126, 44, 125, 43, 144, 144, 160, 93, 97, 52,
|
416
|
+
166, 82, 144, 40, 41, 39, 138, 146, 169, 30,
|
417
|
+
36, 94, 44, 1, 123, 129, 169, 52, 90, 37,
|
418
|
+
52, 167, 147, 92, 120, 121, 31, 32, 33, 34,
|
419
|
+
35, 170, 58, 166, 59, 83, 170, 166, 151, nil,
|
420
|
+
150, nil, 166, 159, 4, 166, 4, nil, nil, nil,
|
421
|
+
nil, 155, nil, 156, 160, nil, nil, 4, 4, 4,
|
422
|
+
4, 4, nil, 4, 5, nil, 5, 157, nil, nil,
|
423
|
+
163, nil, 162, 52, nil, 168, nil, 5, 5, 5,
|
424
|
+
5, 5, nil, 5, nil, nil, nil, nil, 144, nil,
|
425
|
+
nil, nil, 144, nil, nil, 129, 144, 144, nil, 6,
|
426
|
+
129, 6, nil, nil, nil, nil, 171, 7, nil, 7,
|
427
|
+
nil, nil, 6, 6, 6, 6, 6, 8, 6, 8,
|
428
|
+
7, 7, 7, 7, 7, 11, 7, 11, nil, nil,
|
429
|
+
8, 8, 8, 8, 8, nil, 8, nil, 11, 11,
|
430
|
+
11, 11, 11, nil, 11 ]
|
431
|
+
|
432
|
+
racc_goto_check = [
|
433
|
+
22, 24, 21, 23, 36, 36, 37, 18, 16, 34,
|
434
|
+
35, 41, 36, 19, 20, 17, 25, 25, 28, 3,
|
435
|
+
13, 23, 24, 1, 23, 24, 28, 34, 14, 15,
|
436
|
+
34, 29, 32, 17, 19, 20, 1, 1, 1, 1,
|
437
|
+
1, 33, 1, 35, 38, 39, 33, 35, 42, nil,
|
438
|
+
41, nil, 35, 22, 4, 35, 4, nil, nil, nil,
|
439
|
+
nil, 16, nil, 18, 37, nil, nil, 4, 4, 4,
|
440
|
+
4, 4, nil, 4, 5, nil, 5, 23, nil, nil,
|
441
|
+
22, nil, 21, 34, nil, 22, nil, 5, 5, 5,
|
442
|
+
5, 5, nil, 5, nil, nil, nil, nil, 36, nil,
|
443
|
+
nil, nil, 36, nil, nil, 24, 36, 36, nil, 6,
|
444
|
+
24, 6, nil, nil, nil, nil, 22, 7, nil, 7,
|
445
|
+
nil, nil, 6, 6, 6, 6, 6, 8, 6, 8,
|
446
|
+
7, 7, 7, 7, 7, 11, 7, 11, nil, nil,
|
447
|
+
8, 8, 8, 8, 8, nil, 8, nil, 11, 11,
|
448
|
+
11, 11, 11, nil, 11 ]
|
449
|
+
|
450
|
+
racc_goto_pointer = [
|
451
|
+
nil, 23, nil, 17, 54, 74, 109, 117, 127, nil,
|
452
|
+
nil, 135, nil, 2, -8, 11, -30, -3, -29, -5,
|
453
|
+
-4, -40, -42, -15, -17, -28, nil, nil, -120, -96,
|
454
|
+
nil, nil, -20, -101, -9, -116, -40, -91, 24, 18,
|
455
|
+
nil, -9, -13 ]
|
456
|
+
|
457
|
+
racc_goto_default = [
|
458
|
+
nil, nil, 2, 3, 46, 47, 48, 49, 50, 9,
|
459
|
+
10, 51, 12, nil, nil, nil, nil, nil, nil, nil,
|
460
|
+
nil, nil, nil, nil, 140, nil, 45, 127, 139, 128,
|
461
|
+
141, 130, 142, 143, 132, 131, 134, 98, nil, 28,
|
462
|
+
27, nil, 60 ]
|
463
|
+
|
464
|
+
racc_reduce_table = [
|
465
|
+
0, 0, :racc_error,
|
466
|
+
1, 27, :_reduce_none,
|
467
|
+
2, 28, :_reduce_2,
|
468
|
+
1, 28, :_reduce_3,
|
469
|
+
1, 29, :_reduce_none,
|
470
|
+
1, 29, :_reduce_none,
|
471
|
+
1, 29, :_reduce_none,
|
472
|
+
1, 29, :_reduce_none,
|
473
|
+
1, 29, :_reduce_none,
|
474
|
+
1, 29, :_reduce_none,
|
475
|
+
1, 29, :_reduce_none,
|
476
|
+
1, 29, :_reduce_none,
|
477
|
+
1, 29, :_reduce_none,
|
478
|
+
3, 30, :_reduce_13,
|
479
|
+
3, 31, :_reduce_14,
|
480
|
+
3, 32, :_reduce_15,
|
481
|
+
3, 33, :_reduce_16,
|
482
|
+
3, 34, :_reduce_17,
|
483
|
+
4, 35, :_reduce_18,
|
484
|
+
3, 35, :_reduce_19,
|
485
|
+
2, 40, :_reduce_20,
|
486
|
+
2, 40, :_reduce_21,
|
487
|
+
1, 40, :_reduce_22,
|
488
|
+
1, 40, :_reduce_23,
|
489
|
+
2, 41, :_reduce_24,
|
490
|
+
2, 41, :_reduce_25,
|
491
|
+
1, 41, :_reduce_26,
|
492
|
+
1, 41, :_reduce_27,
|
493
|
+
2, 39, :_reduce_none,
|
494
|
+
4, 39, :_reduce_29,
|
495
|
+
4, 39, :_reduce_30,
|
496
|
+
2, 43, :_reduce_31,
|
497
|
+
4, 43, :_reduce_32,
|
498
|
+
1, 44, :_reduce_33,
|
499
|
+
3, 44, :_reduce_34,
|
500
|
+
1, 45, :_reduce_none,
|
501
|
+
3, 45, :_reduce_36,
|
502
|
+
3, 45, :_reduce_37,
|
503
|
+
2, 46, :_reduce_38,
|
504
|
+
2, 46, :_reduce_39,
|
505
|
+
1, 46, :_reduce_40,
|
506
|
+
1, 46, :_reduce_41,
|
507
|
+
1, 47, :_reduce_none,
|
508
|
+
2, 51, :_reduce_43,
|
509
|
+
1, 51, :_reduce_44,
|
510
|
+
2, 53, :_reduce_45,
|
511
|
+
1, 53, :_reduce_46,
|
512
|
+
1, 50, :_reduce_none,
|
513
|
+
1, 50, :_reduce_none,
|
514
|
+
1, 50, :_reduce_none,
|
515
|
+
1, 50, :_reduce_none,
|
516
|
+
1, 50, :_reduce_none,
|
517
|
+
1, 50, :_reduce_none,
|
518
|
+
1, 54, :_reduce_none,
|
519
|
+
1, 54, :_reduce_none,
|
520
|
+
1, 55, :_reduce_none,
|
521
|
+
1, 55, :_reduce_none,
|
522
|
+
1, 56, :_reduce_57,
|
523
|
+
1, 52, :_reduce_58,
|
524
|
+
1, 57, :_reduce_59,
|
525
|
+
2, 58, :_reduce_60,
|
526
|
+
1, 58, :_reduce_none,
|
527
|
+
2, 49, :_reduce_62,
|
528
|
+
1, 49, :_reduce_none,
|
529
|
+
2, 48, :_reduce_64,
|
530
|
+
1, 48, :_reduce_none,
|
531
|
+
1, 60, :_reduce_none,
|
532
|
+
1, 60, :_reduce_none,
|
533
|
+
1, 60, :_reduce_none,
|
534
|
+
1, 60, :_reduce_none,
|
535
|
+
1, 60, :_reduce_none,
|
536
|
+
1, 62, :_reduce_none,
|
537
|
+
1, 62, :_reduce_none,
|
538
|
+
1, 59, :_reduce_none,
|
539
|
+
1, 59, :_reduce_none,
|
540
|
+
1, 61, :_reduce_none,
|
541
|
+
1, 61, :_reduce_none,
|
542
|
+
1, 61, :_reduce_none,
|
543
|
+
2, 42, :_reduce_78,
|
544
|
+
1, 42, :_reduce_none,
|
545
|
+
1, 63, :_reduce_none,
|
546
|
+
2, 63, :_reduce_none,
|
547
|
+
1, 63, :_reduce_none,
|
548
|
+
1, 63, :_reduce_none,
|
549
|
+
1, 63, :_reduce_none,
|
550
|
+
1, 63, :_reduce_none,
|
551
|
+
1, 63, :_reduce_none,
|
552
|
+
1, 63, :_reduce_none,
|
553
|
+
1, 63, :_reduce_none,
|
554
|
+
1, 63, :_reduce_none,
|
555
|
+
1, 63, :_reduce_none,
|
556
|
+
1, 63, :_reduce_none,
|
557
|
+
1, 63, :_reduce_none,
|
558
|
+
1, 63, :_reduce_none,
|
559
|
+
1, 63, :_reduce_none,
|
560
|
+
1, 63, :_reduce_none,
|
561
|
+
1, 63, :_reduce_none,
|
562
|
+
1, 63, :_reduce_none,
|
563
|
+
1, 63, :_reduce_none,
|
564
|
+
1, 63, :_reduce_none,
|
565
|
+
1, 63, :_reduce_none,
|
566
|
+
3, 36, :_reduce_101,
|
567
|
+
3, 37, :_reduce_102,
|
568
|
+
1, 65, :_reduce_none,
|
569
|
+
1, 65, :_reduce_none,
|
570
|
+
1, 65, :_reduce_none,
|
571
|
+
1, 65, :_reduce_none,
|
572
|
+
1, 65, :_reduce_none,
|
573
|
+
1, 65, :_reduce_none,
|
574
|
+
2, 66, :_reduce_109,
|
575
|
+
1, 66, :_reduce_none,
|
576
|
+
1, 38, :_reduce_111,
|
577
|
+
1, 67, :_reduce_none,
|
578
|
+
2, 67, :_reduce_113,
|
579
|
+
2, 67, :_reduce_114,
|
580
|
+
2, 67, :_reduce_115,
|
581
|
+
1, 68, :_reduce_none,
|
582
|
+
1, 68, :_reduce_none,
|
583
|
+
1, 68, :_reduce_none,
|
584
|
+
1, 68, :_reduce_none,
|
585
|
+
1, 68, :_reduce_none,
|
586
|
+
1, 68, :_reduce_none,
|
587
|
+
1, 68, :_reduce_none,
|
588
|
+
1, 68, :_reduce_none,
|
589
|
+
1, 68, :_reduce_none,
|
590
|
+
1, 68, :_reduce_none,
|
591
|
+
1, 68, :_reduce_none,
|
592
|
+
1, 68, :_reduce_none,
|
593
|
+
1, 68, :_reduce_none,
|
594
|
+
1, 68, :_reduce_none,
|
595
|
+
1, 68, :_reduce_none,
|
596
|
+
1, 68, :_reduce_none,
|
597
|
+
1, 68, :_reduce_none,
|
598
|
+
1, 68, :_reduce_none,
|
599
|
+
1, 68, :_reduce_none,
|
600
|
+
1, 68, :_reduce_none,
|
601
|
+
2, 64, :_reduce_136,
|
602
|
+
1, 64, :_reduce_none ]
|
603
|
+
|
604
|
+
racc_reduce_n = 138
|
605
|
+
|
606
|
+
racc_shift_n = 179
|
607
|
+
|
608
|
+
racc_token_table = {
|
609
|
+
false => 0,
|
610
|
+
:error => 1,
|
611
|
+
:EX_LOW => 2,
|
612
|
+
:QUOTE => 3,
|
613
|
+
:BAR => 4,
|
614
|
+
:SLASH => 5,
|
615
|
+
:BACK_SLASH => 6,
|
616
|
+
:URL => 7,
|
617
|
+
:OTHER => 8,
|
618
|
+
:REF_OPEN => 9,
|
619
|
+
:FOOTNOTE_OPEN => 10,
|
620
|
+
:FOOTNOTE_CLOSE => 11,
|
621
|
+
:EX_HIGH => 12,
|
622
|
+
:EM_OPEN => 13,
|
623
|
+
:EM_CLOSE => 14,
|
624
|
+
:CODE_OPEN => 15,
|
625
|
+
:CODE_CLOSE => 16,
|
626
|
+
:VAR_OPEN => 17,
|
627
|
+
:VAR_CLOSE => 18,
|
628
|
+
:KBD_OPEN => 19,
|
629
|
+
:KBD_CLOSE => 20,
|
630
|
+
:INDEX_OPEN => 21,
|
631
|
+
:INDEX_CLOSE => 22,
|
632
|
+
:REF_CLOSE => 23,
|
633
|
+
:VERB_OPEN => 24,
|
634
|
+
:VERB_CLOSE => 25 }
|
635
|
+
|
636
|
+
racc_nt_base = 26
|
637
|
+
|
638
|
+
racc_use_result_var = true
|
639
|
+
|
640
|
+
Racc_arg = [
|
641
|
+
racc_action_table,
|
642
|
+
racc_action_check,
|
643
|
+
racc_action_default,
|
644
|
+
racc_action_pointer,
|
645
|
+
racc_goto_table,
|
646
|
+
racc_goto_check,
|
647
|
+
racc_goto_default,
|
648
|
+
racc_goto_pointer,
|
649
|
+
racc_nt_base,
|
650
|
+
racc_reduce_table,
|
651
|
+
racc_token_table,
|
652
|
+
racc_shift_n,
|
653
|
+
racc_reduce_n,
|
654
|
+
racc_use_result_var ]
|
655
|
+
|
656
|
+
Racc_token_to_s_table = [
|
657
|
+
"$end",
|
658
|
+
"error",
|
659
|
+
"EX_LOW",
|
660
|
+
"QUOTE",
|
661
|
+
"BAR",
|
662
|
+
"SLASH",
|
663
|
+
"BACK_SLASH",
|
664
|
+
"URL",
|
665
|
+
"OTHER",
|
666
|
+
"REF_OPEN",
|
667
|
+
"FOOTNOTE_OPEN",
|
668
|
+
"FOOTNOTE_CLOSE",
|
669
|
+
"EX_HIGH",
|
670
|
+
"EM_OPEN",
|
671
|
+
"EM_CLOSE",
|
672
|
+
"CODE_OPEN",
|
673
|
+
"CODE_CLOSE",
|
674
|
+
"VAR_OPEN",
|
675
|
+
"VAR_CLOSE",
|
676
|
+
"KBD_OPEN",
|
677
|
+
"KBD_CLOSE",
|
678
|
+
"INDEX_OPEN",
|
679
|
+
"INDEX_CLOSE",
|
680
|
+
"REF_CLOSE",
|
681
|
+
"VERB_OPEN",
|
682
|
+
"VERB_CLOSE",
|
683
|
+
"$start",
|
684
|
+
"content",
|
685
|
+
"elements",
|
686
|
+
"element",
|
687
|
+
"emphasis",
|
688
|
+
"code",
|
689
|
+
"var",
|
690
|
+
"keyboard",
|
691
|
+
"index",
|
692
|
+
"reference",
|
693
|
+
"footnote",
|
694
|
+
"verb",
|
695
|
+
"normal_str_ele",
|
696
|
+
"substitute",
|
697
|
+
"ref_label",
|
698
|
+
"ref_label2",
|
699
|
+
"ref_url_strings",
|
700
|
+
"filename",
|
701
|
+
"element_label",
|
702
|
+
"element_label2",
|
703
|
+
"ref_subst_content",
|
704
|
+
"ref_subst_content_q",
|
705
|
+
"ref_subst_strings_q",
|
706
|
+
"ref_subst_strings_first",
|
707
|
+
"ref_subst_ele2",
|
708
|
+
"ref_subst_eles",
|
709
|
+
"ref_subst_str_ele_first",
|
710
|
+
"ref_subst_eles_q",
|
711
|
+
"ref_subst_ele",
|
712
|
+
"ref_subst_ele_q",
|
713
|
+
"ref_subst_str_ele",
|
714
|
+
"ref_subst_str_ele_q",
|
715
|
+
"ref_subst_strings",
|
716
|
+
"ref_subst_string3",
|
717
|
+
"ref_subst_string",
|
718
|
+
"ref_subst_string_q",
|
719
|
+
"ref_subst_string2",
|
720
|
+
"ref_url_string",
|
721
|
+
"verb_strings",
|
722
|
+
"normal_string",
|
723
|
+
"normal_strings",
|
724
|
+
"verb_string",
|
725
|
+
"verb_normal_string" ]
|
726
|
+
|
727
|
+
Racc_debug_parser = false
|
728
|
+
|
729
|
+
##### State transition tables end #####
|
730
|
+
|
731
|
+
# reduce 0 omitted
|
732
|
+
|
733
|
+
# reduce 1 omitted
|
734
|
+
|
735
|
+
def _reduce_2(val, _values, result)
|
736
|
+
result.append val[1]
|
737
|
+
result
|
738
|
+
end
|
739
|
+
|
740
|
+
def _reduce_3(val, _values, result)
|
741
|
+
result = val[0]
|
742
|
+
result
|
743
|
+
end
|
744
|
+
|
745
|
+
# reduce 4 omitted
|
746
|
+
|
747
|
+
# reduce 5 omitted
|
748
|
+
|
749
|
+
# reduce 6 omitted
|
750
|
+
|
751
|
+
# reduce 7 omitted
|
752
|
+
|
753
|
+
# reduce 8 omitted
|
754
|
+
|
755
|
+
# reduce 9 omitted
|
756
|
+
|
757
|
+
# reduce 10 omitted
|
758
|
+
|
759
|
+
# reduce 11 omitted
|
760
|
+
|
761
|
+
# reduce 12 omitted
|
762
|
+
|
763
|
+
def _reduce_13(val, _values, result)
|
764
|
+
content = val[1]
|
765
|
+
result = inline "<em>#{content}</em>", content
|
766
|
+
|
767
|
+
result
|
768
|
+
end
|
769
|
+
|
770
|
+
def _reduce_14(val, _values, result)
|
771
|
+
content = val[1]
|
772
|
+
result = inline "<code>#{content}</code>", content
|
773
|
+
|
774
|
+
result
|
775
|
+
end
|
776
|
+
|
777
|
+
def _reduce_15(val, _values, result)
|
778
|
+
content = val[1]
|
779
|
+
result = inline "+#{content}+", content
|
780
|
+
|
781
|
+
result
|
782
|
+
end
|
783
|
+
|
784
|
+
def _reduce_16(val, _values, result)
|
785
|
+
content = val[1]
|
786
|
+
result = inline "<tt>#{content}</tt>", content
|
787
|
+
|
788
|
+
result
|
789
|
+
end
|
790
|
+
|
791
|
+
def _reduce_17(val, _values, result)
|
792
|
+
label = val[1]
|
793
|
+
@block_parser.add_label label.reference
|
794
|
+
result = "<span id=\"label-#{label}\">#{label}</span>"
|
795
|
+
|
796
|
+
result
|
797
|
+
end
|
798
|
+
|
799
|
+
def _reduce_18(val, _values, result)
|
800
|
+
result = "{#{val[1]}}[#{val[2].join}]"
|
801
|
+
|
802
|
+
result
|
803
|
+
end
|
804
|
+
|
805
|
+
def _reduce_19(val, _values, result)
|
806
|
+
scheme, inline = val[1]
|
807
|
+
|
808
|
+
result = "{#{inline}}[#{scheme}#{inline.reference}]"
|
809
|
+
|
810
|
+
result
|
811
|
+
end
|
812
|
+
|
813
|
+
def _reduce_20(val, _values, result)
|
814
|
+
result = [nil, inline(val[1])]
|
815
|
+
|
816
|
+
result
|
817
|
+
end
|
818
|
+
|
819
|
+
def _reduce_21(val, _values, result)
|
820
|
+
result = [
|
821
|
+
'rdoc-label:',
|
822
|
+
inline("#{val[0].reference}/#{val[1].reference}")
|
823
|
+
]
|
824
|
+
|
825
|
+
result
|
826
|
+
end
|
827
|
+
|
828
|
+
def _reduce_22(val, _values, result)
|
829
|
+
result = ['rdoc-label:', val[0].reference]
|
830
|
+
|
831
|
+
result
|
832
|
+
end
|
833
|
+
|
834
|
+
def _reduce_23(val, _values, result)
|
835
|
+
result = ['rdoc-label:', "#{val[0].reference}/"]
|
836
|
+
|
837
|
+
result
|
838
|
+
end
|
839
|
+
|
840
|
+
def _reduce_24(val, _values, result)
|
841
|
+
result = [nil, inline(val[1])]
|
842
|
+
|
843
|
+
result
|
844
|
+
end
|
845
|
+
|
846
|
+
def _reduce_25(val, _values, result)
|
847
|
+
result = [
|
848
|
+
'rdoc-label:',
|
849
|
+
inline("#{val[0].reference}/#{val[1].reference}")
|
850
|
+
]
|
851
|
+
|
852
|
+
result
|
853
|
+
end
|
854
|
+
|
855
|
+
def _reduce_26(val, _values, result)
|
856
|
+
result = ['rdoc-label:', val[0]]
|
857
|
+
|
858
|
+
result
|
859
|
+
end
|
860
|
+
|
861
|
+
def _reduce_27(val, _values, result)
|
862
|
+
ref = val[0].reference
|
863
|
+
result = ['rdoc-label:', inline(ref, "#{ref}/")]
|
864
|
+
|
865
|
+
result
|
866
|
+
end
|
867
|
+
|
868
|
+
# reduce 28 omitted
|
869
|
+
|
870
|
+
def _reduce_29(val, _values, result)
|
871
|
+
result = val[1]
|
872
|
+
result
|
873
|
+
end
|
874
|
+
|
875
|
+
def _reduce_30(val, _values, result)
|
876
|
+
result = val[1]
|
877
|
+
result
|
878
|
+
end
|
879
|
+
|
880
|
+
def _reduce_31(val, _values, result)
|
881
|
+
result = inline val[0]
|
882
|
+
|
883
|
+
result
|
884
|
+
end
|
885
|
+
|
886
|
+
def _reduce_32(val, _values, result)
|
887
|
+
result = inline "\"#{val[1]}\""
|
888
|
+
|
889
|
+
result
|
890
|
+
end
|
891
|
+
|
892
|
+
def _reduce_33(val, _values, result)
|
893
|
+
result = inline val[0]
|
894
|
+
|
895
|
+
result
|
896
|
+
end
|
897
|
+
|
898
|
+
def _reduce_34(val, _values, result)
|
899
|
+
result = inline "\"#{val[1]}\""
|
900
|
+
|
901
|
+
result
|
902
|
+
end
|
903
|
+
|
904
|
+
# reduce 35 omitted
|
905
|
+
|
906
|
+
def _reduce_36(val, _values, result)
|
907
|
+
result = val[1]
|
908
|
+
result
|
909
|
+
end
|
910
|
+
|
911
|
+
def _reduce_37(val, _values, result)
|
912
|
+
result = inline val[1]
|
913
|
+
result
|
914
|
+
end
|
915
|
+
|
916
|
+
def _reduce_38(val, _values, result)
|
917
|
+
result = val[0].append val[1]
|
918
|
+
|
919
|
+
result
|
920
|
+
end
|
921
|
+
|
922
|
+
def _reduce_39(val, _values, result)
|
923
|
+
result = val[0].append val[1]
|
924
|
+
|
925
|
+
result
|
926
|
+
end
|
927
|
+
|
928
|
+
def _reduce_40(val, _values, result)
|
929
|
+
result = val[0]
|
930
|
+
|
931
|
+
result
|
932
|
+
end
|
933
|
+
|
934
|
+
def _reduce_41(val, _values, result)
|
935
|
+
result = inline val[0]
|
936
|
+
|
937
|
+
result
|
938
|
+
end
|
939
|
+
|
940
|
+
# reduce 42 omitted
|
941
|
+
|
942
|
+
def _reduce_43(val, _values, result)
|
943
|
+
result = val[0].append val[1]
|
944
|
+
|
945
|
+
result
|
946
|
+
end
|
947
|
+
|
948
|
+
def _reduce_44(val, _values, result)
|
949
|
+
result = inline val[0]
|
950
|
+
|
951
|
+
result
|
952
|
+
end
|
953
|
+
|
954
|
+
def _reduce_45(val, _values, result)
|
955
|
+
result = val[0].append val[1]
|
956
|
+
|
957
|
+
result
|
958
|
+
end
|
959
|
+
|
960
|
+
def _reduce_46(val, _values, result)
|
961
|
+
result = val[0]
|
962
|
+
|
963
|
+
result
|
964
|
+
end
|
965
|
+
|
966
|
+
# reduce 47 omitted
|
967
|
+
|
968
|
+
# reduce 48 omitted
|
969
|
+
|
970
|
+
# reduce 49 omitted
|
971
|
+
|
972
|
+
# reduce 50 omitted
|
973
|
+
|
974
|
+
# reduce 51 omitted
|
975
|
+
|
976
|
+
# reduce 52 omitted
|
977
|
+
|
978
|
+
# reduce 53 omitted
|
979
|
+
|
980
|
+
# reduce 54 omitted
|
981
|
+
|
982
|
+
# reduce 55 omitted
|
983
|
+
|
984
|
+
# reduce 56 omitted
|
985
|
+
|
986
|
+
def _reduce_57(val, _values, result)
|
987
|
+
result = val[0]
|
988
|
+
|
989
|
+
result
|
990
|
+
end
|
991
|
+
|
992
|
+
def _reduce_58(val, _values, result)
|
993
|
+
result = inline val[0]
|
994
|
+
|
995
|
+
result
|
996
|
+
end
|
997
|
+
|
998
|
+
def _reduce_59(val, _values, result)
|
999
|
+
result = inline val[0]
|
1000
|
+
|
1001
|
+
result
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
def _reduce_60(val, _values, result)
|
1005
|
+
result << val[1]
|
1006
|
+
result
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
# reduce 61 omitted
|
1010
|
+
|
1011
|
+
def _reduce_62(val, _values, result)
|
1012
|
+
result << val[1]
|
1013
|
+
|
1014
|
+
result
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# reduce 63 omitted
|
1018
|
+
|
1019
|
+
def _reduce_64(val, _values, result)
|
1020
|
+
result << val[1]
|
1021
|
+
|
1022
|
+
result
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
# reduce 65 omitted
|
1026
|
+
|
1027
|
+
# reduce 66 omitted
|
1028
|
+
|
1029
|
+
# reduce 67 omitted
|
1030
|
+
|
1031
|
+
# reduce 68 omitted
|
1032
|
+
|
1033
|
+
# reduce 69 omitted
|
1034
|
+
|
1035
|
+
# reduce 70 omitted
|
1036
|
+
|
1037
|
+
# reduce 71 omitted
|
1038
|
+
|
1039
|
+
# reduce 72 omitted
|
1040
|
+
|
1041
|
+
# reduce 73 omitted
|
1042
|
+
|
1043
|
+
# reduce 74 omitted
|
1044
|
+
|
1045
|
+
# reduce 75 omitted
|
1046
|
+
|
1047
|
+
# reduce 76 omitted
|
1048
|
+
|
1049
|
+
# reduce 77 omitted
|
1050
|
+
|
1051
|
+
def _reduce_78(val, _values, result)
|
1052
|
+
result << val[1]
|
1053
|
+
result
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
# reduce 79 omitted
|
1057
|
+
|
1058
|
+
# reduce 80 omitted
|
1059
|
+
|
1060
|
+
# reduce 81 omitted
|
1061
|
+
|
1062
|
+
# reduce 82 omitted
|
1063
|
+
|
1064
|
+
# reduce 83 omitted
|
1065
|
+
|
1066
|
+
# reduce 84 omitted
|
1067
|
+
|
1068
|
+
# reduce 85 omitted
|
1069
|
+
|
1070
|
+
# reduce 86 omitted
|
1071
|
+
|
1072
|
+
# reduce 87 omitted
|
1073
|
+
|
1074
|
+
# reduce 88 omitted
|
1075
|
+
|
1076
|
+
# reduce 89 omitted
|
1077
|
+
|
1078
|
+
# reduce 90 omitted
|
1079
|
+
|
1080
|
+
# reduce 91 omitted
|
1081
|
+
|
1082
|
+
# reduce 92 omitted
|
1083
|
+
|
1084
|
+
# reduce 93 omitted
|
1085
|
+
|
1086
|
+
# reduce 94 omitted
|
1087
|
+
|
1088
|
+
# reduce 95 omitted
|
1089
|
+
|
1090
|
+
# reduce 96 omitted
|
1091
|
+
|
1092
|
+
# reduce 97 omitted
|
1093
|
+
|
1094
|
+
# reduce 98 omitted
|
1095
|
+
|
1096
|
+
# reduce 99 omitted
|
1097
|
+
|
1098
|
+
# reduce 100 omitted
|
1099
|
+
|
1100
|
+
def _reduce_101(val, _values, result)
|
1101
|
+
index = @block_parser.add_footnote val[1].rdoc
|
1102
|
+
result = "{*#{index}}[rdoc-label:foottext-#{index}:footmark-#{index}]"
|
1103
|
+
|
1104
|
+
result
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
def _reduce_102(val, _values, result)
|
1108
|
+
result = inline "<tt>#{val[1]}</tt>", val[1]
|
1109
|
+
|
1110
|
+
result
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# reduce 103 omitted
|
1114
|
+
|
1115
|
+
# reduce 104 omitted
|
1116
|
+
|
1117
|
+
# reduce 105 omitted
|
1118
|
+
|
1119
|
+
# reduce 106 omitted
|
1120
|
+
|
1121
|
+
# reduce 107 omitted
|
1122
|
+
|
1123
|
+
# reduce 108 omitted
|
1124
|
+
|
1125
|
+
def _reduce_109(val, _values, result)
|
1126
|
+
result << val[1]
|
1127
|
+
result
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
# reduce 110 omitted
|
1131
|
+
|
1132
|
+
def _reduce_111(val, _values, result)
|
1133
|
+
result = inline val[0]
|
1134
|
+
|
1135
|
+
result
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
# reduce 112 omitted
|
1139
|
+
|
1140
|
+
def _reduce_113(val, _values, result)
|
1141
|
+
result = val[1]
|
1142
|
+
result
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
def _reduce_114(val, _values, result)
|
1146
|
+
result = val[1]
|
1147
|
+
result
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
def _reduce_115(val, _values, result)
|
1151
|
+
result = val[1]
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# reduce 116 omitted
|
1156
|
+
|
1157
|
+
# reduce 117 omitted
|
1158
|
+
|
1159
|
+
# reduce 118 omitted
|
1160
|
+
|
1161
|
+
# reduce 119 omitted
|
1162
|
+
|
1163
|
+
# reduce 120 omitted
|
1164
|
+
|
1165
|
+
# reduce 121 omitted
|
1166
|
+
|
1167
|
+
# reduce 122 omitted
|
1168
|
+
|
1169
|
+
# reduce 123 omitted
|
1170
|
+
|
1171
|
+
# reduce 124 omitted
|
1172
|
+
|
1173
|
+
# reduce 125 omitted
|
1174
|
+
|
1175
|
+
# reduce 126 omitted
|
1176
|
+
|
1177
|
+
# reduce 127 omitted
|
1178
|
+
|
1179
|
+
# reduce 128 omitted
|
1180
|
+
|
1181
|
+
# reduce 129 omitted
|
1182
|
+
|
1183
|
+
# reduce 130 omitted
|
1184
|
+
|
1185
|
+
# reduce 131 omitted
|
1186
|
+
|
1187
|
+
# reduce 132 omitted
|
1188
|
+
|
1189
|
+
# reduce 133 omitted
|
1190
|
+
|
1191
|
+
# reduce 134 omitted
|
1192
|
+
|
1193
|
+
# reduce 135 omitted
|
1194
|
+
|
1195
|
+
def _reduce_136(val, _values, result)
|
1196
|
+
result << val[1]
|
1197
|
+
result
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# reduce 137 omitted
|
1201
|
+
|
1202
|
+
def _reduce_none(val, _values, result)
|
1203
|
+
val[0]
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
end # class InlineParser
|
1207
|
+
|
1208
|
+
end
|