racc 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.ja.rdoc +0 -1
  3. data/README.rdoc +6 -7
  4. data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
  5. data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
  6. data/doc/en/grammar2.en.rdoc +219 -0
  7. data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
  8. data/{rdoc → doc}/ja/command.ja.html +0 -0
  9. data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
  10. data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
  11. data/{rdoc → doc}/ja/index.ja.html +0 -0
  12. data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
  13. data/{rdoc → doc}/ja/usage.ja.html +0 -0
  14. data/ext/racc/cparse/cparse.c +1 -1
  15. data/ext/racc/cparse/extconf.rb +1 -0
  16. data/lib/racc/info.rb +1 -1
  17. data/lib/racc/parser-text.rb +1 -1
  18. data/lib/racc/parser.rb +1 -1
  19. data/lib/racc/parserfilegenerator.rb +0 -44
  20. data/lib/racc/statetransitiontable.rb +2 -8
  21. metadata +15 -121
  22. data/Rakefile +0 -79
  23. data/ext/racc/com/headius/racc/Cparse.java +0 -849
  24. data/lib/racc/pre-setup +0 -13
  25. data/sample/array.y +0 -67
  26. data/sample/array2.y +0 -59
  27. data/sample/calc-ja.y +0 -66
  28. data/sample/calc.y +0 -65
  29. data/sample/conflict.y +0 -15
  30. data/sample/hash.y +0 -60
  31. data/sample/lalr.y +0 -17
  32. data/sample/lists.y +0 -57
  33. data/sample/syntax.y +0 -46
  34. data/sample/yyerr.y +0 -46
  35. data/test/assets/cadenza.y +0 -170
  36. data/test/assets/cast.y +0 -926
  37. data/test/assets/chk.y +0 -126
  38. data/test/assets/conf.y +0 -16
  39. data/test/assets/csspool.y +0 -729
  40. data/test/assets/digraph.y +0 -29
  41. data/test/assets/echk.y +0 -118
  42. data/test/assets/edtf.y +0 -583
  43. data/test/assets/err.y +0 -60
  44. data/test/assets/error_recovery.y +0 -35
  45. data/test/assets/expect.y +0 -7
  46. data/test/assets/firstline.y +0 -4
  47. data/test/assets/huia.y +0 -318
  48. data/test/assets/ichk.y +0 -102
  49. data/test/assets/intp.y +0 -546
  50. data/test/assets/journey.y +0 -47
  51. data/test/assets/liquor.y +0 -313
  52. data/test/assets/machete.y +0 -423
  53. data/test/assets/macruby.y +0 -2197
  54. data/test/assets/mailp.y +0 -437
  55. data/test/assets/mediacloth.y +0 -599
  56. data/test/assets/mof.y +0 -649
  57. data/test/assets/namae.y +0 -302
  58. data/test/assets/nasl.y +0 -626
  59. data/test/assets/newsyn.y +0 -25
  60. data/test/assets/noend.y +0 -4
  61. data/test/assets/nokogiri-css.y +0 -255
  62. data/test/assets/nonass.y +0 -41
  63. data/test/assets/normal.y +0 -27
  64. data/test/assets/norule.y +0 -4
  65. data/test/assets/nullbug1.y +0 -25
  66. data/test/assets/nullbug2.y +0 -15
  67. data/test/assets/opal.y +0 -1807
  68. data/test/assets/opt.y +0 -123
  69. data/test/assets/percent.y +0 -35
  70. data/test/assets/php_serialization.y +0 -98
  71. data/test/assets/recv.y +0 -97
  72. data/test/assets/riml.y +0 -665
  73. data/test/assets/rrconf.y +0 -14
  74. data/test/assets/ruby18.y +0 -1943
  75. data/test/assets/ruby19.y +0 -2174
  76. data/test/assets/ruby20.y +0 -2350
  77. data/test/assets/ruby21.y +0 -2359
  78. data/test/assets/ruby22.y +0 -2381
  79. data/test/assets/scan.y +0 -72
  80. data/test/assets/syntax.y +0 -50
  81. data/test/assets/tp_plus.y +0 -622
  82. data/test/assets/twowaysql.y +0 -278
  83. data/test/assets/unterm.y +0 -5
  84. data/test/assets/useless.y +0 -12
  85. data/test/assets/yyerr.y +0 -46
  86. data/test/bench.y +0 -36
  87. data/test/helper.rb +0 -115
  88. data/test/infini.y +0 -8
  89. data/test/regress/cadenza +0 -796
  90. data/test/regress/cast +0 -3428
  91. data/test/regress/csspool +0 -2314
  92. data/test/regress/edtf +0 -1794
  93. data/test/regress/huia +0 -1392
  94. data/test/regress/journey +0 -222
  95. data/test/regress/liquor +0 -885
  96. data/test/regress/machete +0 -833
  97. data/test/regress/mediacloth +0 -1463
  98. data/test/regress/mof +0 -1368
  99. data/test/regress/namae +0 -634
  100. data/test/regress/nasl +0 -2058
  101. data/test/regress/nokogiri-css +0 -836
  102. data/test/regress/opal +0 -6431
  103. data/test/regress/php_serialization +0 -336
  104. data/test/regress/riml +0 -3283
  105. data/test/regress/ruby18 +0 -6344
  106. data/test/regress/ruby22 +0 -7460
  107. data/test/regress/tp_plus +0 -1933
  108. data/test/regress/twowaysql +0 -556
  109. data/test/scandata/brace +0 -7
  110. data/test/scandata/gvar +0 -1
  111. data/test/scandata/normal +0 -4
  112. data/test/scandata/percent +0 -18
  113. data/test/scandata/slash +0 -10
  114. data/test/src.intp +0 -34
  115. data/test/start.y +0 -20
  116. data/test/test_chk_y.rb +0 -52
  117. data/test/test_grammar_file_parser.rb +0 -15
  118. data/test/test_racc_command.rb +0 -339
  119. data/test/test_scan_y.rb +0 -52
  120. data/test/testscanner.rb +0 -51
  121. data/web/racc.en.rhtml +0 -42
  122. data/web/racc.ja.rhtml +0 -51
@@ -1,1463 +0,0 @@
1
- #
2
- # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.5.0
4
- # from Racc grammar file "".
5
- #
6
-
7
- require 'racc/parser.rb'
8
-
9
- require 'mediacloth/mediawikiast'
10
-
11
- class MediaWikiParser < Racc::Parser
12
-
13
- module_eval(<<'...end mediacloth.y/module_eval...', 'mediacloth.y', 564)
14
-
15
- attr_accessor :lexer
16
-
17
- def initialize
18
- @nodes = []
19
- @context = []
20
- @wiki_ast_length = 0
21
- super
22
- end
23
-
24
- #Tokenizes input string and parses it.
25
- def parse(input)
26
- @yydebug=true
27
- lexer.tokenize(input)
28
- do_parse
29
- return @nodes.last
30
- end
31
-
32
- #Asks the lexer to return the next token.
33
- def next_token
34
- token = @lexer.lex
35
- if token[0].to_s.upcase.include? "_START"
36
- @context << token[2..3]
37
- elsif token[0].to_s.upcase.include? "_END"
38
- @ast_index = @context.last[0]
39
- @ast_length = token[2] + token[3] - @context.last[0]
40
- @context.pop
41
- else
42
- @ast_index = token[2]
43
- @ast_length = token[3]
44
- end
45
-
46
- @wiki_ast_length += token[3]
47
-
48
- return token[0..1]
49
- end
50
- ...end mediacloth.y/module_eval...
51
- ##### State transition tables begin ###
52
-
53
- racc_action_table = [
54
- 22, 28, 50, 29, 61, 13, 63, 132, 15, 86,
55
- 37, 87, 24, 33, 86, 34, 87, 35, 85, 23,
56
- 26, 25, 27, 12, 86, 30, 87, 31, 86, 42,
57
- 87, 32, 44, 86, 48, 87, 57, 17, 57, 22,
58
- 28, 21, 29, 46, 13, 51, 67, 15, 68, 11,
59
- 36, 24, 33, 14, 34, 69, 35, 36, 23, 26,
60
- 25, 27, 12, 86, 30, 87, 31, 75, 73, 70,
61
- 32, 48, 81, 71, 72, 76, 17, 77, 22, 28,
62
- 21, 29, 82, 13, 45, 51, 15, -65, 11, 36,
63
- 24, 33, 14, 34, -65, 35, 63, 23, 26, 25,
64
- 27, 12, 96, 30, 63, 31, 106, 109, 110, 32,
65
- 113, 114, 48, 117, 118, 17, 124, 22, 28, 21,
66
- 29, 57, 13, 127, 128, 15, 131, 11, 36, 24,
67
- 33, 14, 34, 136, 35, 137, 23, 26, 25, 27,
68
- 12, 138, 30, 75, 31, 51, 141, -63, 32, 106,
69
- 106, 150, 153, 51, 17, nil, nil, nil, 21, nil,
70
- 22, 28, 53, 29, nil, 13, 11, 36, 15, nil,
71
- 14, nil, 24, 33, nil, 34, nil, 35, nil, 23,
72
- 26, 25, 27, 12, nil, 30, nil, 31, nil, nil,
73
- nil, 32, nil, nil, nil, nil, nil, 17, nil, 22,
74
- 28, 21, 29, 55, 13, nil, nil, 15, nil, 11,
75
- 36, 24, 33, 14, 34, nil, 35, nil, 23, 26,
76
- 25, 27, 12, nil, 30, nil, 31, nil, nil, nil,
77
- 32, nil, nil, nil, nil, nil, 17, nil, 22, 28,
78
- 21, 29, nil, 13, nil, nil, 15, nil, 11, 36,
79
- 24, 33, 14, 34, nil, 35, nil, 23, 26, 25,
80
- 27, 12, nil, 30, nil, 31, nil, nil, nil, 32,
81
- nil, nil, nil, nil, nil, 17, nil, 22, 28, 21,
82
- 29, nil, 13, nil, nil, 15, nil, 11, 36, 24,
83
- 33, 14, 34, nil, 35, nil, 23, 26, 25, 27,
84
- 12, nil, 30, nil, 31, nil, nil, nil, 32, nil,
85
- nil, nil, nil, nil, 17, nil, 22, 28, 21, 29,
86
- nil, 13, nil, nil, 15, nil, 11, 36, 24, 33,
87
- 14, 34, nil, 35, nil, 23, 26, 25, 27, 12,
88
- nil, 30, nil, 31, nil, nil, nil, 32, nil, nil,
89
- nil, nil, nil, 17, nil, 22, 28, 21, 29, nil,
90
- 13, nil, nil, 15, nil, 11, 36, 24, 33, 14,
91
- 34, nil, 35, nil, 23, 26, 25, 27, 12, nil,
92
- 30, nil, 31, nil, nil, nil, 32, nil, nil, nil,
93
- nil, nil, 17, nil, 22, 28, 21, 29, nil, 13,
94
- nil, nil, 15, nil, 11, 36, 24, 33, 14, 34,
95
- nil, 35, nil, 23, 26, 25, 27, 12, nil, 30,
96
- nil, 31, nil, nil, nil, 32, nil, nil, nil, nil,
97
- nil, 17, 78, nil, nil, 21, nil, 22, 28, 88,
98
- 29, nil, 13, 11, 36, 15, nil, 14, nil, 24,
99
- 33, nil, 34, nil, 35, nil, 23, 26, 25, 27,
100
- 12, nil, 30, nil, 31, nil, nil, nil, 32, nil,
101
- nil, nil, nil, nil, 17, nil, 22, 28, 21, 29,
102
- 89, 13, nil, nil, 15, nil, 11, 36, 24, 33,
103
- 14, 34, nil, 35, nil, 23, 26, 25, 27, 12,
104
- nil, 30, nil, 31, nil, nil, nil, 32, nil, nil,
105
- nil, nil, nil, 17, nil, 22, 28, 21, 29, nil,
106
- 13, nil, nil, 15, nil, 11, 36, 24, 33, 14,
107
- 34, nil, 35, nil, 23, 26, 25, 27, 12, nil,
108
- 30, nil, 31, nil, nil, 93, 32, nil, nil, nil,
109
- nil, nil, 17, nil, 22, 28, 21, 29, nil, 13,
110
- nil, nil, 15, nil, 11, 36, 24, 33, 14, 34,
111
- nil, 35, nil, 23, 26, 25, 27, 12, nil, 30,
112
- nil, 31, nil, nil, nil, 32, nil, nil, 98, nil,
113
- nil, 17, nil, 22, 28, 21, 29, nil, 13, nil,
114
- nil, 15, nil, 11, 36, 24, 33, 14, 34, nil,
115
- 35, nil, 23, 26, 25, 27, 12, nil, 30, nil,
116
- 31, nil, nil, nil, 32, nil, nil, nil, nil, 101,
117
- 17, nil, nil, nil, 21, nil, 22, 28, nil, 29,
118
- nil, 13, 11, 36, 15, nil, 14, nil, 24, 33,
119
- 102, 34, nil, 35, nil, 23, 26, 25, 27, 12,
120
- nil, 30, nil, 31, nil, nil, nil, 32, nil, nil,
121
- nil, nil, nil, 17, nil, 22, 28, 21, 29, nil,
122
- 13, nil, nil, 15, nil, 11, 36, 24, 33, 14,
123
- 34, 103, 35, nil, 23, 26, 25, 27, 12, nil,
124
- 30, nil, 31, nil, nil, nil, 32, nil, nil, nil,
125
- nil, nil, 17, nil, 22, 28, 21, 29, nil, 13,
126
- nil, nil, 15, nil, 11, 36, 24, 33, 14, 34,
127
- nil, 35, 104, 23, 26, 25, 27, 12, nil, 30,
128
- nil, 31, nil, nil, nil, 32, nil, nil, nil, nil,
129
- nil, 17, nil, 22, 28, 21, 29, nil, 13, nil,
130
- nil, 15, nil, 11, 36, 24, 33, 14, 34, nil,
131
- 35, nil, 23, 26, 25, 27, 12, nil, 30, nil,
132
- 31, nil, nil, nil, 32, nil, nil, nil, nil, nil,
133
- 17, nil, 22, 28, 21, 29, nil, 13, nil, nil,
134
- 15, nil, 11, 36, 24, 33, 14, 34, nil, 35,
135
- nil, 23, 26, 25, 27, 12, nil, 30, nil, 31,
136
- nil, nil, nil, 32, nil, nil, nil, nil, nil, 17,
137
- nil, 22, 28, 21, 29, nil, 13, nil, nil, 15,
138
- nil, 11, 36, 24, 33, 14, 34, nil, 35, nil,
139
- 23, 26, 25, 27, 12, nil, 30, nil, 31, nil,
140
- nil, nil, 32, nil, nil, nil, nil, nil, 17, 115,
141
- 22, 28, 21, 29, nil, 13, nil, nil, 15, nil,
142
- 11, 36, 24, 33, 14, 34, nil, 35, nil, 23,
143
- 26, 25, 27, 12, nil, 30, nil, 31, nil, nil,
144
- nil, 32, nil, nil, nil, nil, nil, 17, nil, 22,
145
- 28, 21, 29, nil, 13, nil, 121, 15, nil, 11,
146
- 36, 24, 33, 14, 34, nil, 35, nil, 23, 26,
147
- 25, 27, 12, nil, 30, nil, 31, nil, nil, nil,
148
- 32, nil, nil, nil, nil, nil, 17, nil, 22, 28,
149
- 21, 29, nil, 13, nil, nil, 15, 123, 11, 36,
150
- 24, 33, 14, 34, nil, 35, nil, 23, 26, 25,
151
- 27, 12, nil, 30, nil, 31, nil, nil, 126, 32,
152
- nil, nil, nil, nil, nil, 17, nil, 22, 28, 21,
153
- 29, nil, 13, nil, nil, 15, nil, 11, 36, 24,
154
- 33, 14, 34, nil, 35, nil, 23, 26, 25, 27,
155
- 12, nil, 30, nil, 31, nil, nil, nil, 32, nil,
156
- nil, 129, nil, nil, 17, nil, 22, 28, 21, 29,
157
- nil, 13, nil, nil, 15, nil, 11, 36, 24, 33,
158
- 14, 34, nil, 35, nil, 23, 26, 25, 27, 12,
159
- nil, 30, nil, 31, nil, nil, nil, 32, nil, nil,
160
- nil, nil, 130, 17, nil, 22, 28, 21, 29, nil,
161
- 13, nil, 134, 15, nil, 11, 36, 24, 33, 14,
162
- 34, nil, 35, nil, 23, 26, 25, 27, 12, nil,
163
- 30, nil, 31, nil, nil, nil, 32, nil, nil, nil,
164
- nil, nil, 17, nil, 22, 28, 21, 29, nil, 13,
165
- nil, nil, 15, nil, 11, 36, 24, 33, 14, 34,
166
- nil, 35, nil, 23, 26, 25, 27, 12, nil, 30,
167
- nil, 31, nil, nil, nil, 32, nil, nil, nil, nil,
168
- nil, 17, nil, 22, 28, 21, 29, nil, 13, nil,
169
- nil, 15, nil, 11, 36, 24, 33, 14, 34, nil,
170
- 35, nil, 23, 26, 25, 27, 12, nil, 30, nil,
171
- 31, nil, nil, nil, 32, nil, nil, nil, nil, nil,
172
- 17, nil, 22, 28, 21, 29, nil, 13, nil, 142,
173
- 15, nil, 11, 36, 24, 33, 14, 34, nil, 35,
174
- nil, 23, 26, 25, 27, 12, nil, 30, nil, 31,
175
- nil, nil, nil, 32, nil, nil, nil, nil, nil, 17,
176
- nil, 22, 28, 21, 29, nil, 13, nil, nil, 15,
177
- 144, 11, 36, 24, 33, 14, 34, nil, 35, nil,
178
- 23, 26, 25, 27, 12, nil, 30, nil, 31, nil,
179
- nil, nil, 32, nil, nil, nil, nil, nil, 17, nil,
180
- nil, nil, 21, nil, nil, nil, nil, nil, nil, nil,
181
- 11, 36, 22, 28, 14, 29, nil, 13, nil, nil,
182
- 15, nil, 136, nil, 24, 33, nil, 34, nil, 35,
183
- nil, 23, 26, 25, 27, 12, nil, 30, nil, 31,
184
- nil, nil, nil, 32, nil, nil, nil, nil, nil, 17,
185
- nil, nil, nil, 21, nil, nil, nil, nil, nil, nil,
186
- nil, 11, 36, 22, 28, 14, 29, nil, 13, nil,
187
- nil, 15, nil, 136, nil, 24, 33, nil, 34, nil,
188
- 35, nil, 23, 26, 25, 27, 12, nil, 30, nil,
189
- 31, nil, nil, nil, 32, nil, nil, nil, nil, nil,
190
- 17, nil, nil, nil, 21, nil, nil, nil, nil, nil,
191
- nil, nil, 11, 36, nil, nil, 14 ]
192
-
193
- racc_action_check = [
194
- 0, 0, 21, 0, 32, 0, 32, 106, 0, 85,
195
- 1, 85, 0, 0, 121, 0, 121, 0, 51, 0,
196
- 0, 0, 0, 0, 123, 0, 123, 0, 142, 13,
197
- 142, 0, 15, 144, 17, 144, 30, 0, 31, 2,
198
- 2, 0, 2, 15, 2, 21, 36, 2, 37, 0,
199
- 0, 2, 2, 0, 2, 39, 2, 106, 2, 2,
200
- 2, 2, 2, 51, 2, 51, 2, 44, 44, 41,
201
- 2, 48, 48, 42, 43, 45, 2, 46, 12, 12,
202
- 2, 12, 49, 12, 15, 50, 12, 56, 2, 2,
203
- 12, 12, 2, 12, 58, 12, 59, 12, 12, 12,
204
- 12, 12, 60, 12, 62, 12, 67, 73, 74, 12,
205
- 76, 77, 81, 83, 84, 12, 90, 14, 14, 12,
206
- 14, 91, 14, 94, 95, 14, 105, 12, 12, 14,
207
- 14, 12, 14, 109, 14, 112, 14, 14, 14, 14,
208
- 14, 113, 14, 114, 14, 118, 119, 125, 14, 132,
209
- 133, 135, 139, 141, 14, nil, nil, nil, 14, nil,
210
- 28, 28, 28, 28, nil, 28, 14, 14, 28, nil,
211
- 14, nil, 28, 28, nil, 28, nil, 28, nil, 28,
212
- 28, 28, 28, 28, nil, 28, nil, 28, nil, nil,
213
- nil, 28, nil, nil, nil, nil, nil, 28, nil, 29,
214
- 29, 28, 29, 29, 29, nil, nil, 29, nil, 28,
215
- 28, 29, 29, 28, 29, nil, 29, nil, 29, 29,
216
- 29, 29, 29, nil, 29, nil, 29, nil, nil, nil,
217
- 29, nil, nil, nil, nil, nil, 29, nil, 33, 33,
218
- 29, 33, nil, 33, nil, nil, 33, nil, 29, 29,
219
- 33, 33, 29, 33, nil, 33, nil, 33, 33, 33,
220
- 33, 33, nil, 33, nil, 33, nil, nil, nil, 33,
221
- nil, nil, nil, nil, nil, 33, nil, 34, 34, 33,
222
- 34, nil, 34, nil, nil, 34, nil, 33, 33, 34,
223
- 34, 33, 34, nil, 34, nil, 34, 34, 34, 34,
224
- 34, nil, 34, nil, 34, nil, nil, nil, 34, nil,
225
- nil, nil, nil, nil, 34, nil, 35, 35, 34, 35,
226
- nil, 35, nil, nil, 35, nil, 34, 34, 35, 35,
227
- 34, 35, nil, 35, nil, 35, 35, 35, 35, 35,
228
- nil, 35, nil, 35, nil, nil, nil, 35, nil, nil,
229
- nil, nil, nil, 35, nil, 40, 40, 35, 40, nil,
230
- 40, nil, nil, 40, nil, 35, 35, 40, 40, 35,
231
- 40, nil, 40, nil, 40, 40, 40, 40, 40, nil,
232
- 40, nil, 40, nil, nil, nil, 40, nil, nil, nil,
233
- nil, nil, 40, nil, 47, 47, 40, 47, nil, 47,
234
- nil, nil, 47, nil, 40, 40, 47, 47, 40, 47,
235
- nil, 47, nil, 47, 47, 47, 47, 47, nil, 47,
236
- nil, 47, nil, nil, nil, 47, nil, nil, nil, nil,
237
- nil, 47, 47, nil, nil, 47, nil, 52, 52, 52,
238
- 52, nil, 52, 47, 47, 52, nil, 47, nil, 52,
239
- 52, nil, 52, nil, 52, nil, 52, 52, 52, 52,
240
- 52, nil, 52, nil, 52, nil, nil, nil, 52, nil,
241
- nil, nil, nil, nil, 52, nil, 54, 54, 52, 54,
242
- 54, 54, nil, nil, 54, nil, 52, 52, 54, 54,
243
- 52, 54, nil, 54, nil, 54, 54, 54, 54, 54,
244
- nil, 54, nil, 54, nil, nil, nil, 54, nil, nil,
245
- nil, nil, nil, 54, nil, 57, 57, 54, 57, nil,
246
- 57, nil, nil, 57, nil, 54, 54, 57, 57, 54,
247
- 57, nil, 57, nil, 57, 57, 57, 57, 57, nil,
248
- 57, nil, 57, nil, nil, 57, 57, nil, nil, nil,
249
- nil, nil, 57, nil, 61, 61, 57, 61, nil, 61,
250
- nil, nil, 61, nil, 57, 57, 61, 61, 57, 61,
251
- nil, 61, nil, 61, 61, 61, 61, 61, nil, 61,
252
- nil, 61, nil, nil, nil, 61, nil, nil, 61, nil,
253
- nil, 61, nil, 63, 63, 61, 63, nil, 63, nil,
254
- nil, 63, nil, 61, 61, 63, 63, 61, 63, nil,
255
- 63, nil, 63, 63, 63, 63, 63, nil, 63, nil,
256
- 63, nil, nil, nil, 63, nil, nil, nil, nil, 63,
257
- 63, nil, nil, nil, 63, nil, 64, 64, nil, 64,
258
- nil, 64, 63, 63, 64, nil, 63, nil, 64, 64,
259
- 64, 64, nil, 64, nil, 64, 64, 64, 64, 64,
260
- nil, 64, nil, 64, nil, nil, nil, 64, nil, nil,
261
- nil, nil, nil, 64, nil, 65, 65, 64, 65, nil,
262
- 65, nil, nil, 65, nil, 64, 64, 65, 65, 64,
263
- 65, 65, 65, nil, 65, 65, 65, 65, 65, nil,
264
- 65, nil, 65, nil, nil, nil, 65, nil, nil, nil,
265
- nil, nil, 65, nil, 66, 66, 65, 66, nil, 66,
266
- nil, nil, 66, nil, 65, 65, 66, 66, 65, 66,
267
- nil, 66, 66, 66, 66, 66, 66, 66, nil, 66,
268
- nil, 66, nil, nil, nil, 66, nil, nil, nil, nil,
269
- nil, 66, nil, 71, 71, 66, 71, nil, 71, nil,
270
- nil, 71, nil, 66, 66, 71, 71, 66, 71, nil,
271
- 71, nil, 71, 71, 71, 71, 71, nil, 71, nil,
272
- 71, nil, nil, nil, 71, nil, nil, nil, nil, nil,
273
- 71, nil, 75, 75, 71, 75, nil, 75, nil, nil,
274
- 75, nil, 71, 71, 75, 75, 71, 75, nil, 75,
275
- nil, 75, 75, 75, 75, 75, nil, 75, nil, 75,
276
- nil, nil, nil, 75, nil, nil, nil, nil, nil, 75,
277
- nil, 79, 79, 75, 79, nil, 79, nil, nil, 79,
278
- nil, 75, 75, 79, 79, 75, 79, nil, 79, nil,
279
- 79, 79, 79, 79, 79, nil, 79, nil, 79, nil,
280
- nil, nil, 79, nil, nil, nil, nil, nil, 79, 79,
281
- 86, 86, 79, 86, nil, 86, nil, nil, 86, nil,
282
- 79, 79, 86, 86, 79, 86, nil, 86, nil, 86,
283
- 86, 86, 86, 86, nil, 86, nil, 86, nil, nil,
284
- nil, 86, nil, nil, nil, nil, nil, 86, nil, 87,
285
- 87, 86, 87, nil, 87, nil, 86, 87, nil, 86,
286
- 86, 87, 87, 86, 87, nil, 87, nil, 87, 87,
287
- 87, 87, 87, nil, 87, nil, 87, nil, nil, nil,
288
- 87, nil, nil, nil, nil, nil, 87, nil, 92, 92,
289
- 87, 92, nil, 92, nil, nil, 92, 87, 87, 87,
290
- 92, 92, 87, 92, nil, 92, nil, 92, 92, 92,
291
- 92, 92, nil, 92, nil, 92, nil, nil, 92, 92,
292
- nil, nil, nil, nil, nil, 92, nil, 97, 97, 92,
293
- 97, nil, 97, nil, nil, 97, nil, 92, 92, 97,
294
- 97, 92, 97, nil, 97, nil, 97, 97, 97, 97,
295
- 97, nil, 97, nil, 97, nil, nil, nil, 97, nil,
296
- nil, 97, nil, nil, 97, nil, 100, 100, 97, 100,
297
- nil, 100, nil, nil, 100, nil, 97, 97, 100, 100,
298
- 97, 100, nil, 100, nil, 100, 100, 100, 100, 100,
299
- nil, 100, nil, 100, nil, nil, nil, 100, nil, nil,
300
- nil, nil, 100, 100, nil, 108, 108, 100, 108, nil,
301
- 108, nil, 108, 108, nil, 100, 100, 108, 108, 100,
302
- 108, nil, 108, nil, 108, 108, 108, 108, 108, nil,
303
- 108, nil, 108, nil, nil, nil, 108, nil, nil, nil,
304
- nil, nil, 108, nil, 111, 111, 108, 111, nil, 111,
305
- nil, nil, 111, nil, 108, 108, 111, 111, 108, 111,
306
- nil, 111, nil, 111, 111, 111, 111, 111, nil, 111,
307
- nil, 111, nil, nil, nil, 111, nil, nil, nil, nil,
308
- nil, 111, nil, 120, 120, 111, 120, nil, 120, nil,
309
- nil, 120, nil, 111, 111, 120, 120, 111, 120, nil,
310
- 120, nil, 120, 120, 120, 120, 120, nil, 120, nil,
311
- 120, nil, nil, nil, 120, nil, nil, nil, nil, nil,
312
- 120, nil, 122, 122, 120, 122, nil, 122, nil, 120,
313
- 122, nil, 120, 120, 122, 122, 120, 122, nil, 122,
314
- nil, 122, 122, 122, 122, 122, nil, 122, nil, 122,
315
- nil, nil, nil, 122, nil, nil, nil, nil, nil, 122,
316
- nil, 134, 134, 122, 134, nil, 134, nil, nil, 134,
317
- 122, 122, 122, 134, 134, 122, 134, nil, 134, nil,
318
- 134, 134, 134, 134, 134, nil, 134, nil, 134, nil,
319
- nil, nil, 134, nil, nil, nil, nil, nil, 134, nil,
320
- nil, nil, 134, nil, nil, nil, nil, nil, nil, nil,
321
- 134, 134, 136, 136, 134, 136, nil, 136, nil, nil,
322
- 136, nil, 136, nil, 136, 136, nil, 136, nil, 136,
323
- nil, 136, 136, 136, 136, 136, nil, 136, nil, 136,
324
- nil, nil, nil, 136, nil, nil, nil, nil, nil, 136,
325
- nil, nil, nil, 136, nil, nil, nil, nil, nil, nil,
326
- nil, 136, 136, 152, 152, 136, 152, nil, 152, nil,
327
- nil, 152, nil, 152, nil, 152, 152, nil, 152, nil,
328
- 152, nil, 152, 152, 152, 152, 152, nil, 152, nil,
329
- 152, nil, nil, nil, 152, nil, nil, nil, nil, nil,
330
- 152, nil, nil, nil, 152, nil, nil, nil, nil, nil,
331
- nil, nil, 152, 152, nil, nil, 152 ]
332
-
333
- racc_action_pointer = [
334
- -2, 10, 37, nil, nil, nil, nil, nil, nil, nil,
335
- nil, nil, 76, 27, 115, 30, nil, -7, nil, nil,
336
- nil, 0, nil, nil, nil, nil, nil, nil, 158, 197,
337
- 5, 7, -31, 236, 275, 314, 44, 48, nil, 29,
338
- 353, 61, 64, 18, 55, 73, 23, 392, 30, 38,
339
- 40, 16, 435, nil, 474, nil, 59, 513, 64, 59,
340
- 68, 552, 67, 591, 634, 673, 712, 94, nil, nil,
341
- nil, 751, nil, 105, 97, 790, 98, 109, nil, 829,
342
- nil, 71, nil, 69, 68, -38, 868, 907, nil, nil,
343
- 88, 90, 946, nil, 93, 90, nil, 985, nil, nil,
344
- 1024, nil, nil, nil, nil, 73, 5, nil, 1063, 121,
345
- nil, 1102, 124, 139, 131, nil, nil, nil, 100, 100,
346
- 1141, -33, 1180, -23, nil, 116, nil, nil, nil, nil,
347
- nil, nil, 137, 138, 1219, 140, 1270, nil, nil, 141,
348
- nil, 108, -19, nil, -14, nil, nil, nil, nil, nil,
349
- nil, nil, 1321, nil, nil, nil, nil, nil ]
350
-
351
- racc_action_default = [
352
- -83, -83, -1, -2, -3, -4, -5, -6, -7, -8,
353
- -9, -10, -19, -83, -19, -83, -18, -23, -37, -39,
354
- -40, -43, -51, -52, -53, -54, -55, -56, -83, -83,
355
- -83, -83, -73, -83, -83, -83, -83, -83, -38, -83,
356
- -20, -83, -26, -83, -30, -83, -83, -83, -23, -83,
357
- -43, -46, -83, -57, -83, -58, -63, -83, -63, -73,
358
- -83, -83, -73, -83, -83, -83, -83, -80, 158, -11,
359
- -12, -83, -13, -83, -83, -83, -32, -83, -21, -83,
360
- -24, -23, -41, -83, -83, -46, -83, -83, -59, -60,
361
- -83, -83, -83, -66, -83, -83, -69, -83, -70, -72,
362
- -83, -74, -76, -77, -78, -83, -83, -27, -28, -34,
363
- -15, -31, -83, -83, -30, -22, -25, -42, -43, -83,
364
- -83, -46, -83, -46, -61, -65, -67, -62, -68, -71,
365
- -75, -79, -80, -80, -83, -83, -34, -16, -33, -83,
366
- -44, -43, -46, -47, -46, -49, -64, -81, -82, -29,
367
- -14, -35, -34, -17, -45, -48, -50, -36 ]
368
-
369
- racc_goto_table = [
370
- 38, 84, 74, 105, 49, 39, 90, 43, 94, 60,
371
- 135, 1, 133, 2, 47, 41, 107, 112, 59, 56,
372
- 58, nil, nil, nil, nil, nil, nil, nil, nil, nil,
373
- nil, nil, nil, 83, nil, 119, 95, 151, 38, 99,
374
- nil, 52, 54, nil, nil, 80, 64, 65, 66, nil,
375
- 38, nil, 38, 157, nil, nil, nil, nil, nil, nil,
376
- 79, nil, 38, 38, 38, nil, nil, nil, 147, 148,
377
- 92, 143, 139, 145, 97, 146, 100, 38, 116, 149,
378
- 125, nil, nil, nil, 108, nil, nil, nil, 111, nil,
379
- 38, nil, 155, nil, 156, 38, nil, nil, 38, 120,
380
- 122, 140, nil, nil, nil, nil, 38, nil, nil, 38,
381
- nil, nil, nil, nil, nil, nil, nil, nil, 38, nil,
382
- 38, nil, nil, nil, 154, nil, nil, nil, nil, nil,
383
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
384
- nil, nil, nil, nil, nil, nil, nil, 108, nil, 152,
385
- 38 ]
386
-
387
- racc_goto_check = [
388
- 3, 23, 15, 30, 22, 12, 25, 12, 25, 28,
389
- 14, 1, 11, 2, 18, 13, 19, 16, 27, 24,
390
- 24, nil, nil, nil, nil, nil, nil, nil, nil, nil,
391
- nil, nil, nil, 22, nil, 23, 28, 14, 3, 28,
392
- nil, 2, 2, nil, nil, 18, 2, 2, 2, nil,
393
- 3, nil, 3, 14, nil, nil, nil, nil, nil, nil,
394
- 2, nil, 3, 3, 3, nil, nil, nil, 30, 30,
395
- 2, 23, 15, 23, 2, 25, 2, 3, 18, 19,
396
- 24, nil, nil, nil, 2, nil, nil, nil, 2, nil,
397
- 3, nil, 23, nil, 23, 3, nil, nil, 3, 2,
398
- 2, 22, nil, nil, nil, nil, 3, nil, nil, 3,
399
- nil, nil, nil, nil, nil, nil, nil, nil, 3, nil,
400
- 3, nil, nil, nil, 22, nil, nil, nil, nil, nil,
401
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
402
- nil, nil, nil, nil, nil, nil, nil, 2, nil, 2,
403
- 3 ]
404
-
405
- racc_goto_pointer = [
406
- nil, 11, 13, -2, nil, nil, nil, nil, nil, nil,
407
- nil, -94, -7, 2, -99, -42, -59, nil, -3, -55,
408
- nil, nil, -17, -50, -11, -50, nil, -14, -23, nil,
409
- -64 ]
410
-
411
- racc_goto_default = [
412
- nil, nil, 40, 18, 3, 4, 5, 6, 7, 8,
413
- 9, 10, nil, nil, nil, nil, nil, 16, nil, nil,
414
- 19, 20, nil, nil, nil, nil, 91, nil, nil, 62,
415
- nil ]
416
-
417
- racc_reduce_table = [
418
- 0, 0, :racc_error,
419
- 1, 58, :_reduce_1,
420
- 1, 60, :_reduce_2,
421
- 1, 60, :_reduce_3,
422
- 1, 60, :_reduce_4,
423
- 1, 60, :_reduce_5,
424
- 1, 60, :_reduce_6,
425
- 1, 60, :_reduce_7,
426
- 1, 60, :_reduce_8,
427
- 1, 60, :_reduce_9,
428
- 1, 60, :_reduce_10,
429
- 3, 60, :_reduce_11,
430
- 3, 60, :_reduce_12,
431
- 3, 60, :_reduce_13,
432
- 6, 60, :_reduce_14,
433
- 4, 60, :_reduce_15,
434
- 5, 60, :_reduce_16,
435
- 6, 60, :_reduce_17,
436
- 1, 60, :_reduce_none,
437
- 0, 69, :_reduce_19,
438
- 1, 69, :_reduce_20,
439
- 3, 67, :_reduce_21,
440
- 4, 67, :_reduce_22,
441
- 0, 75, :_reduce_23,
442
- 2, 75, :_reduce_24,
443
- 3, 75, :_reduce_25,
444
- 1, 70, :_reduce_26,
445
- 3, 70, :_reduce_27,
446
- 1, 76, :_reduce_28,
447
- 3, 76, :_reduce_29,
448
- 0, 72, :_reduce_30,
449
- 2, 72, :_reduce_31,
450
- 0, 73, :_reduce_32,
451
- 2, 73, :_reduce_33,
452
- 0, 71, :_reduce_34,
453
- 2, 71, :_reduce_35,
454
- 3, 71, :_reduce_36,
455
- 1, 59, :_reduce_37,
456
- 2, 59, :_reduce_38,
457
- 1, 61, :_reduce_39,
458
- 1, 61, :_reduce_40,
459
- 3, 74, :_reduce_41,
460
- 4, 74, :_reduce_42,
461
- 0, 79, :_reduce_43,
462
- 4, 79, :_reduce_44,
463
- 5, 79, :_reduce_45,
464
- 0, 80, :_reduce_46,
465
- 3, 80, :_reduce_47,
466
- 4, 80, :_reduce_48,
467
- 3, 80, :_reduce_49,
468
- 4, 80, :_reduce_50,
469
- 1, 77, :_reduce_51,
470
- 1, 77, :_reduce_52,
471
- 1, 77, :_reduce_53,
472
- 1, 77, :_reduce_54,
473
- 1, 77, :_reduce_55,
474
- 1, 77, :_reduce_56,
475
- 2, 78, :_reduce_57,
476
- 2, 78, :_reduce_58,
477
- 3, 78, :_reduce_59,
478
- 3, 78, :_reduce_60,
479
- 4, 62, :_reduce_61,
480
- 4, 63, :_reduce_62,
481
- 0, 83, :_reduce_63,
482
- 3, 82, :_reduce_64,
483
- 0, 82, :_reduce_65,
484
- 2, 81, :_reduce_66,
485
- 3, 81, :_reduce_67,
486
- 4, 64, :_reduce_68,
487
- 3, 64, :_reduce_69,
488
- 2, 84, :_reduce_70,
489
- 3, 84, :_reduce_71,
490
- 2, 85, :_reduce_72,
491
- 0, 85, :_reduce_73,
492
- 2, 86, :_reduce_74,
493
- 3, 86, :_reduce_75,
494
- 3, 65, :_reduce_76,
495
- 3, 65, :_reduce_77,
496
- 3, 66, :_reduce_78,
497
- 4, 68, :_reduce_79,
498
- 0, 87, :_reduce_80,
499
- 3, 87, :_reduce_81,
500
- 3, 87, :_reduce_82 ]
501
-
502
- racc_reduce_n = 83
503
-
504
- racc_shift_n = 158
505
-
506
- racc_token_table = {
507
- false => 0,
508
- :error => 1,
509
- :TEXT => 2,
510
- :BOLD_START => 3,
511
- :BOLD_END => 4,
512
- :ITALIC_START => 5,
513
- :ITALIC_END => 6,
514
- :LINK_START => 7,
515
- :LINK_END => 8,
516
- :LINKSEP => 9,
517
- :INTLINK_START => 10,
518
- :INTLINK_END => 11,
519
- :INTLINKSEP => 12,
520
- :RESOURCESEP => 13,
521
- :CHAR_ENT => 14,
522
- :PRE_START => 15,
523
- :PRE_END => 16,
524
- :PREINDENT_START => 17,
525
- :PREINDENT_END => 18,
526
- :SECTION_START => 19,
527
- :SECTION_END => 20,
528
- :HLINE => 21,
529
- :SIGNATURE_NAME => 22,
530
- :SIGNATURE_DATE => 23,
531
- :SIGNATURE_FULL => 24,
532
- :PARA_START => 25,
533
- :PARA_END => 26,
534
- :UL_START => 27,
535
- :UL_END => 28,
536
- :OL_START => 29,
537
- :OL_END => 30,
538
- :LI_START => 31,
539
- :LI_END => 32,
540
- :DL_START => 33,
541
- :DL_END => 34,
542
- :DT_START => 35,
543
- :DT_END => 36,
544
- :DD_START => 37,
545
- :DD_END => 38,
546
- :TAG_START => 39,
547
- :TAG_END => 40,
548
- :ATTR_NAME => 41,
549
- :ATTR_VALUE => 42,
550
- :TABLE_START => 43,
551
- :TABLE_END => 44,
552
- :ROW_START => 45,
553
- :ROW_END => 46,
554
- :HEAD_START => 47,
555
- :HEAD_END => 48,
556
- :CELL_START => 49,
557
- :CELL_END => 50,
558
- :KEYWORD => 51,
559
- :TEMPLATE_START => 52,
560
- :TEMPLATE_END => 53,
561
- :CATEGORY => 54,
562
- :PASTE_START => 55,
563
- :PASTE_END => 56 }
564
-
565
- racc_nt_base = 57
566
-
567
- racc_use_result_var = true
568
-
569
- Racc_arg = [
570
- racc_action_table,
571
- racc_action_check,
572
- racc_action_default,
573
- racc_action_pointer,
574
- racc_goto_table,
575
- racc_goto_check,
576
- racc_goto_default,
577
- racc_goto_pointer,
578
- racc_nt_base,
579
- racc_reduce_table,
580
- racc_token_table,
581
- racc_shift_n,
582
- racc_reduce_n,
583
- racc_use_result_var ]
584
-
585
- Racc_token_to_s_table = [
586
- "$end",
587
- "error",
588
- "TEXT",
589
- "BOLD_START",
590
- "BOLD_END",
591
- "ITALIC_START",
592
- "ITALIC_END",
593
- "LINK_START",
594
- "LINK_END",
595
- "LINKSEP",
596
- "INTLINK_START",
597
- "INTLINK_END",
598
- "INTLINKSEP",
599
- "RESOURCESEP",
600
- "CHAR_ENT",
601
- "PRE_START",
602
- "PRE_END",
603
- "PREINDENT_START",
604
- "PREINDENT_END",
605
- "SECTION_START",
606
- "SECTION_END",
607
- "HLINE",
608
- "SIGNATURE_NAME",
609
- "SIGNATURE_DATE",
610
- "SIGNATURE_FULL",
611
- "PARA_START",
612
- "PARA_END",
613
- "UL_START",
614
- "UL_END",
615
- "OL_START",
616
- "OL_END",
617
- "LI_START",
618
- "LI_END",
619
- "DL_START",
620
- "DL_END",
621
- "DT_START",
622
- "DT_END",
623
- "DD_START",
624
- "DD_END",
625
- "TAG_START",
626
- "TAG_END",
627
- "ATTR_NAME",
628
- "ATTR_VALUE",
629
- "TABLE_START",
630
- "TABLE_END",
631
- "ROW_START",
632
- "ROW_END",
633
- "HEAD_START",
634
- "HEAD_END",
635
- "CELL_START",
636
- "CELL_END",
637
- "KEYWORD",
638
- "TEMPLATE_START",
639
- "TEMPLATE_END",
640
- "CATEGORY",
641
- "PASTE_START",
642
- "PASTE_END",
643
- "$start",
644
- "wiki",
645
- "repeated_contents",
646
- "contents",
647
- "text",
648
- "bulleted_list",
649
- "numbered_list",
650
- "dictionary_list",
651
- "preformatted",
652
- "section",
653
- "tag",
654
- "template",
655
- "para_contents",
656
- "link_contents",
657
- "reslink_repeated_contents",
658
- "intlink_repeated_contents",
659
- "cat_sort_contents",
660
- "table",
661
- "tag_attributes",
662
- "link_repeated_contents",
663
- "element",
664
- "formatted_element",
665
- "table_contents",
666
- "row_contents",
667
- "list_item",
668
- "list_contents",
669
- "@1",
670
- "dictionary_term",
671
- "dictionary_contents",
672
- "dictionary_definition",
673
- "template_parameters" ]
674
-
675
- Racc_debug_parser = false
676
-
677
- ##### State transition tables end #####
678
-
679
- # reduce 0 omitted
680
-
681
- module_eval(<<'.,.,', 'mediacloth.y', 47)
682
- def _reduce_1(val, _values, result)
683
- @nodes.push WikiAST.new(0, @wiki_ast_length)
684
- #@nodes.last.children.insert(0, val[0])
685
- #puts val[0]
686
- @nodes.last.children += val[0]
687
-
688
- result
689
- end
690
- .,.,
691
-
692
- module_eval(<<'.,.,', 'mediacloth.y', 57)
693
- def _reduce_2(val, _values, result)
694
- result = val[0]
695
-
696
- result
697
- end
698
- .,.,
699
-
700
- module_eval(<<'.,.,', 'mediacloth.y', 61)
701
- def _reduce_3(val, _values, result)
702
- result = val[0]
703
-
704
- result
705
- end
706
- .,.,
707
-
708
- module_eval(<<'.,.,', 'mediacloth.y', 65)
709
- def _reduce_4(val, _values, result)
710
- result = val[0]
711
-
712
- result
713
- end
714
- .,.,
715
-
716
- module_eval(<<'.,.,', 'mediacloth.y', 69)
717
- def _reduce_5(val, _values, result)
718
- list = ListAST.new(@ast_index, @ast_length)
719
- list.list_type = :Dictionary
720
- list.children = val[0]
721
- result = list
722
-
723
- result
724
- end
725
- .,.,
726
-
727
- module_eval(<<'.,.,', 'mediacloth.y', 76)
728
- def _reduce_6(val, _values, result)
729
- result = val[0]
730
-
731
- result
732
- end
733
- .,.,
734
-
735
- module_eval(<<'.,.,', 'mediacloth.y', 80)
736
- def _reduce_7(val, _values, result)
737
- result = val[0]
738
-
739
- result
740
- end
741
- .,.,
742
-
743
- module_eval(<<'.,.,', 'mediacloth.y', 84)
744
- def _reduce_8(val, _values, result)
745
- result = val[0]
746
-
747
- result
748
- end
749
- .,.,
750
-
751
- module_eval(<<'.,.,', 'mediacloth.y', 88)
752
- def _reduce_9(val, _values, result)
753
- result = val[0]
754
-
755
- result
756
- end
757
- .,.,
758
-
759
- module_eval(<<'.,.,', 'mediacloth.y', 92)
760
- def _reduce_10(val, _values, result)
761
- k = KeywordAST.new(@ast_index, @ast_length)
762
- k.text = val[0]
763
- result = k
764
-
765
- result
766
- end
767
- .,.,
768
-
769
- module_eval(<<'.,.,', 'mediacloth.y', 98)
770
- def _reduce_11(val, _values, result)
771
- p = ParagraphAST.new(@ast_index, @ast_length)
772
- p.children = val[1]
773
- result = p
774
-
775
- result
776
- end
777
- .,.,
778
-
779
- module_eval(<<'.,.,', 'mediacloth.y', 104)
780
- def _reduce_12(val, _values, result)
781
- l = LinkAST.new(@ast_index, @ast_length)
782
- l.link_type = val[0]
783
- l.url = val[1][0]
784
- l.children += val[1][1..-1] if val[1].length > 1
785
- result = l
786
-
787
- result
788
- end
789
- .,.,
790
-
791
- module_eval(<<'.,.,', 'mediacloth.y', 112)
792
- def _reduce_13(val, _values, result)
793
- p = PasteAST.new(@ast_index, @ast_length)
794
- p.children = val[1]
795
- result = p
796
-
797
- result
798
- end
799
- .,.,
800
-
801
- module_eval(<<'.,.,', 'mediacloth.y', 118)
802
- def _reduce_14(val, _values, result)
803
- l = ResourceLinkAST.new(@ast_index, @ast_length)
804
- l.prefix = val[1]
805
- l.locator = val[3]
806
- l.children = val[4] unless val[4].nil? or val[4].empty?
807
- result = l
808
-
809
- result
810
- end
811
- .,.,
812
-
813
- module_eval(<<'.,.,', 'mediacloth.y', 126)
814
- def _reduce_15(val, _values, result)
815
- l = InternalLinkAST.new(@ast_index, @ast_length)
816
- l.locator = val[1]
817
- l.children = val[2] unless val[2].nil? or val[2].empty?
818
- result = l
819
-
820
- result
821
- end
822
- .,.,
823
-
824
- module_eval(<<'.,.,', 'mediacloth.y', 133)
825
- def _reduce_16(val, _values, result)
826
- l = CategoryAST.new(@ast_index, @ast_length)
827
- l.locator = val[2]
828
- l.sort_as = val[3]
829
- result = l
830
-
831
- result
832
- end
833
- .,.,
834
-
835
- module_eval(<<'.,.,', 'mediacloth.y', 140)
836
- def _reduce_17(val, _values, result)
837
- l = CategoryLinkAST.new(@ast_index, @ast_length)
838
- l.locator = val[3]
839
- l.children = val[4] unless val[4].nil? or val[4].empty?
840
- result = l
841
-
842
- result
843
- end
844
- .,.,
845
-
846
- # reduce 18 omitted
847
-
848
- module_eval(<<'.,.,', 'mediacloth.y', 150)
849
- def _reduce_19(val, _values, result)
850
- result = nil
851
-
852
- result
853
- end
854
- .,.,
855
-
856
- module_eval(<<'.,.,', 'mediacloth.y', 154)
857
- def _reduce_20(val, _values, result)
858
- result = val[0]
859
-
860
- result
861
- end
862
- .,.,
863
-
864
- module_eval(<<'.,.,', 'mediacloth.y', 161)
865
- def _reduce_21(val, _values, result)
866
- if val[0] != val[2]
867
- raise Racc::ParseError.new("XHTML end tag #{val[2]} does not match start tag #{val[0]}")
868
- end
869
- elem = ElementAST.new(@ast_index, @ast_length)
870
- elem.name = val[0]
871
- elem.attributes = val[1]
872
- result = elem
873
-
874
- result
875
- end
876
- .,.,
877
-
878
- module_eval(<<'.,.,', 'mediacloth.y', 171)
879
- def _reduce_22(val, _values, result)
880
- if val[0] != val[3]
881
- raise Racc::ParseError.new("XHTML end tag #{val[3]} does not match start tag #{val[0]}")
882
- end
883
- elem = ElementAST.new(@ast_index, @ast_length)
884
- elem.name = val[0]
885
- elem.attributes = val[1]
886
- elem.children += val[2]
887
- result = elem
888
-
889
- result
890
- end
891
- .,.,
892
-
893
- module_eval(<<'.,.,', 'mediacloth.y', 184)
894
- def _reduce_23(val, _values, result)
895
- result = nil
896
-
897
- result
898
- end
899
- .,.,
900
-
901
- module_eval(<<'.,.,', 'mediacloth.y', 188)
902
- def _reduce_24(val, _values, result)
903
- attr_map = val[2] ? val[2] : {}
904
- attr_map[val[0]] = true
905
- result = attr_map
906
-
907
- result
908
- end
909
- .,.,
910
-
911
- module_eval(<<'.,.,', 'mediacloth.y', 194)
912
- def _reduce_25(val, _values, result)
913
- attr_map = val[2] ? val[2] : {}
914
- attr_map[val[0]] = val[1]
915
- result = attr_map
916
-
917
- result
918
- end
919
- .,.,
920
-
921
- module_eval(<<'.,.,', 'mediacloth.y', 204)
922
- def _reduce_26(val, _values, result)
923
- result = val
924
-
925
- result
926
- end
927
- .,.,
928
-
929
- module_eval(<<'.,.,', 'mediacloth.y', 208)
930
- def _reduce_27(val, _values, result)
931
- result = [val[0]]
932
- result += val[2]
933
-
934
- result
935
- end
936
- .,.,
937
-
938
- module_eval(<<'.,.,', 'mediacloth.y', 217)
939
- def _reduce_28(val, _values, result)
940
- result = val[0]
941
-
942
- result
943
- end
944
- .,.,
945
-
946
- module_eval(<<'.,.,', 'mediacloth.y', 221)
947
- def _reduce_29(val, _values, result)
948
- result = val[0]
949
- result += val[2] if val[2]
950
-
951
- result
952
- end
953
- .,.,
954
-
955
- module_eval(<<'.,.,', 'mediacloth.y', 229)
956
- def _reduce_30(val, _values, result)
957
- result = nil
958
-
959
- result
960
- end
961
- .,.,
962
-
963
- module_eval(<<'.,.,', 'mediacloth.y', 233)
964
- def _reduce_31(val, _values, result)
965
- result = val[1]
966
-
967
- result
968
- end
969
- .,.,
970
-
971
- module_eval(<<'.,.,', 'mediacloth.y', 239)
972
- def _reduce_32(val, _values, result)
973
- result = nil
974
-
975
- result
976
- end
977
- .,.,
978
-
979
- module_eval(<<'.,.,', 'mediacloth.y', 243)
980
- def _reduce_33(val, _values, result)
981
- result = val[1]
982
-
983
- result
984
- end
985
- .,.,
986
-
987
- module_eval(<<'.,.,', 'mediacloth.y', 249)
988
- def _reduce_34(val, _values, result)
989
- result = nil
990
-
991
- result
992
- end
993
- .,.,
994
-
995
- module_eval(<<'.,.,', 'mediacloth.y', 253)
996
- def _reduce_35(val, _values, result)
997
- result = val[1]
998
-
999
- result
1000
- end
1001
- .,.,
1002
-
1003
- module_eval(<<'.,.,', 'mediacloth.y', 257)
1004
- def _reduce_36(val, _values, result)
1005
- i = InternalLinkItemAST.new(@ast_index, @ast_length)
1006
- i.children = val[1]
1007
- result = [i]
1008
- result += val[2] if val[2]
1009
-
1010
- result
1011
- end
1012
- .,.,
1013
-
1014
- module_eval(<<'.,.,', 'mediacloth.y', 266)
1015
- def _reduce_37(val, _values, result)
1016
- result = []
1017
- result << val[0]
1018
-
1019
- result
1020
- end
1021
- .,.,
1022
-
1023
- module_eval(<<'.,.,', 'mediacloth.y', 271)
1024
- def _reduce_38(val, _values, result)
1025
- result = []
1026
- result += val[0]
1027
- result << val[1]
1028
-
1029
- result
1030
- end
1031
- .,.,
1032
-
1033
- module_eval(<<'.,.,', 'mediacloth.y', 279)
1034
- def _reduce_39(val, _values, result)
1035
- p = TextAST.new(@ast_index, @ast_length)
1036
- p.formatting = val[0][0]
1037
- p.contents = val[0][1]
1038
- result = p
1039
-
1040
- result
1041
- end
1042
- .,.,
1043
-
1044
- module_eval(<<'.,.,', 'mediacloth.y', 286)
1045
- def _reduce_40(val, _values, result)
1046
- result = val[0]
1047
-
1048
- result
1049
- end
1050
- .,.,
1051
-
1052
- module_eval(<<'.,.,', 'mediacloth.y', 293)
1053
- def _reduce_41(val, _values, result)
1054
- table = TableAST.new(@ast_index, @ast_length)
1055
- table.children = val[1] unless val[1].nil? or val[1].empty?
1056
- result = table
1057
-
1058
- result
1059
- end
1060
- .,.,
1061
-
1062
- module_eval(<<'.,.,', 'mediacloth.y', 299)
1063
- def _reduce_42(val, _values, result)
1064
- table = TableAST.new(@ast_index, @ast_length)
1065
- table.options = val[1]
1066
- table.children = val[2] unless val[2].nil? or val[2].empty?
1067
- result = table
1068
-
1069
- result
1070
- end
1071
- .,.,
1072
-
1073
- module_eval(<<'.,.,', 'mediacloth.y', 307)
1074
- def _reduce_43(val, _values, result)
1075
- result = nil
1076
-
1077
- result
1078
- end
1079
- .,.,
1080
-
1081
- module_eval(<<'.,.,', 'mediacloth.y', 311)
1082
- def _reduce_44(val, _values, result)
1083
- row = TableRowAST.new(@ast_index, @ast_length)
1084
- row.children = val[1] unless val[1].nil? or val[1].empty?
1085
- result = [row]
1086
- result += val[3] unless val[3].nil? or val[3].empty?
1087
-
1088
- result
1089
- end
1090
- .,.,
1091
-
1092
- module_eval(<<'.,.,', 'mediacloth.y', 318)
1093
- def _reduce_45(val, _values, result)
1094
- row = TableRowAST.new(@ast_index, @ast_length)
1095
- row.children = val[2] unless val[2].nil? or val[2].empty?
1096
- row.options = val[1]
1097
- result = [row]
1098
- result += val[4] unless val[4].nil? or val[4].empty?
1099
-
1100
- result
1101
- end
1102
- .,.,
1103
-
1104
- module_eval(<<'.,.,', 'mediacloth.y', 327)
1105
- def _reduce_46(val, _values, result)
1106
- result = nil
1107
-
1108
- result
1109
- end
1110
- .,.,
1111
-
1112
- module_eval(<<'.,.,', 'mediacloth.y', 331)
1113
- def _reduce_47(val, _values, result)
1114
- cell = TableCellAST.new(@ast_index, @ast_length)
1115
- cell.type = :head
1116
- result = [cell]
1117
- result += val[2] unless val[2].nil? or val[2].empty?
1118
-
1119
- result
1120
- end
1121
- .,.,
1122
-
1123
- module_eval(<<'.,.,', 'mediacloth.y', 338)
1124
- def _reduce_48(val, _values, result)
1125
- cell = TableCellAST.new(@ast_index, @ast_length)
1126
- cell.children = val[1] unless val[1].nil? or val[1].empty?
1127
- cell.type = :head
1128
- result = [cell]
1129
- result += val[3] unless val[3].nil? or val[3].empty?
1130
-
1131
- result
1132
- end
1133
- .,.,
1134
-
1135
- module_eval(<<'.,.,', 'mediacloth.y', 346)
1136
- def _reduce_49(val, _values, result)
1137
- cell = TableCellAST.new(@ast_index, @ast_length)
1138
- cell.type = :body
1139
- result = [cell]
1140
- result += val[2] unless val[2].nil? or val[2].empty?
1141
-
1142
- result
1143
- end
1144
- .,.,
1145
-
1146
- module_eval(<<'.,.,', 'mediacloth.y', 353)
1147
- def _reduce_50(val, _values, result)
1148
- if val[2] == 'attributes'
1149
- result = []
1150
- else
1151
- cell = TableCellAST.new(@ast_index, @ast_length)
1152
- cell.children = val[1] unless val[1].nil? or val[1].empty?
1153
- cell.type = :body
1154
- result = [cell]
1155
- end
1156
- result += val[3] unless val[3].nil? or val[3].empty?
1157
- if val[2] == 'attributes' and val[3] and val[3].first.class == TableCellAST
1158
- val[3].first.attributes = val[1]
1159
- end
1160
- result
1161
-
1162
- result
1163
- end
1164
- .,.,
1165
-
1166
- module_eval(<<'.,.,', 'mediacloth.y', 371)
1167
- def _reduce_51(val, _values, result)
1168
- return [:None, val[0]]
1169
- result
1170
- end
1171
- .,.,
1172
-
1173
- module_eval(<<'.,.,', 'mediacloth.y', 373)
1174
- def _reduce_52(val, _values, result)
1175
- return [:HLine, val[0]]
1176
- result
1177
- end
1178
- .,.,
1179
-
1180
- module_eval(<<'.,.,', 'mediacloth.y', 375)
1181
- def _reduce_53(val, _values, result)
1182
- return [:CharacterEntity, val[0]]
1183
- result
1184
- end
1185
- .,.,
1186
-
1187
- module_eval(<<'.,.,', 'mediacloth.y', 377)
1188
- def _reduce_54(val, _values, result)
1189
- return [:SignatureDate, val[0]]
1190
- result
1191
- end
1192
- .,.,
1193
-
1194
- module_eval(<<'.,.,', 'mediacloth.y', 379)
1195
- def _reduce_55(val, _values, result)
1196
- return [:SignatureName, val[0]]
1197
- result
1198
- end
1199
- .,.,
1200
-
1201
- module_eval(<<'.,.,', 'mediacloth.y', 381)
1202
- def _reduce_56(val, _values, result)
1203
- return [:SignatureFull, val[0]]
1204
- result
1205
- end
1206
- .,.,
1207
-
1208
- module_eval(<<'.,.,', 'mediacloth.y', 387)
1209
- def _reduce_57(val, _values, result)
1210
- result = FormattedAST.new(@ast_index, @ast_length)
1211
- result.formatting = :Bold
1212
- result
1213
-
1214
- result
1215
- end
1216
- .,.,
1217
-
1218
- module_eval(<<'.,.,', 'mediacloth.y', 393)
1219
- def _reduce_58(val, _values, result)
1220
- result = FormattedAST.new(@ast_index, @ast_length)
1221
- result.formatting = :Italic
1222
- result
1223
-
1224
- result
1225
- end
1226
- .,.,
1227
-
1228
- module_eval(<<'.,.,', 'mediacloth.y', 399)
1229
- def _reduce_59(val, _values, result)
1230
- p = FormattedAST.new(@ast_index, @ast_length)
1231
- p.formatting = :Bold
1232
- p.children += val[1]
1233
- result = p
1234
-
1235
- result
1236
- end
1237
- .,.,
1238
-
1239
- module_eval(<<'.,.,', 'mediacloth.y', 406)
1240
- def _reduce_60(val, _values, result)
1241
- p = FormattedAST.new(@ast_index, @ast_length)
1242
- p.formatting = :Italic
1243
- p.children += val[1]
1244
- result = p
1245
-
1246
- result
1247
- end
1248
- .,.,
1249
-
1250
- module_eval(<<'.,.,', 'mediacloth.y', 415)
1251
- def _reduce_61(val, _values, result)
1252
- list = ListAST.new(@ast_index, @ast_length)
1253
- list.list_type = :Bulleted
1254
- list.children << val[1]
1255
- list.children += val[2]
1256
- result = list
1257
-
1258
- result
1259
- end
1260
- .,.,
1261
-
1262
- module_eval(<<'.,.,', 'mediacloth.y', 425)
1263
- def _reduce_62(val, _values, result)
1264
- list = ListAST.new(@ast_index, @ast_length)
1265
- list.list_type = :Numbered
1266
- list.children << val[1]
1267
- list.children += val[2]
1268
- result = list
1269
-
1270
- result
1271
- end
1272
- .,.,
1273
-
1274
- module_eval(<<'.,.,', 'mediacloth.y', 434)
1275
- def _reduce_63(val, _values, result)
1276
- result = []
1277
- result
1278
- end
1279
- .,.,
1280
-
1281
- module_eval(<<'.,.,', 'mediacloth.y', 437)
1282
- def _reduce_64(val, _values, result)
1283
- result << val[1]
1284
- result += val[2]
1285
-
1286
- result
1287
- end
1288
- .,.,
1289
-
1290
- module_eval(<<'.,.,', 'mediacloth.y', 441)
1291
- def _reduce_65(val, _values, result)
1292
- result = []
1293
- result
1294
- end
1295
- .,.,
1296
-
1297
- module_eval(<<'.,.,', 'mediacloth.y', 447)
1298
- def _reduce_66(val, _values, result)
1299
- result = ListItemAST.new(@ast_index, @ast_length)
1300
-
1301
- result
1302
- end
1303
- .,.,
1304
-
1305
- module_eval(<<'.,.,', 'mediacloth.y', 451)
1306
- def _reduce_67(val, _values, result)
1307
- li = ListItemAST.new(@ast_index, @ast_length)
1308
- li.children += val[1]
1309
- result = li
1310
-
1311
- result
1312
- end
1313
- .,.,
1314
-
1315
- module_eval(<<'.,.,', 'mediacloth.y', 460)
1316
- def _reduce_68(val, _values, result)
1317
- result = [val[1]]
1318
- result += val[2]
1319
-
1320
- result
1321
- end
1322
- .,.,
1323
-
1324
- module_eval(<<'.,.,', 'mediacloth.y', 465)
1325
- def _reduce_69(val, _values, result)
1326
- result = val[1]
1327
-
1328
- result
1329
- end
1330
- .,.,
1331
-
1332
- module_eval(<<'.,.,', 'mediacloth.y', 472)
1333
- def _reduce_70(val, _values, result)
1334
- result = ListTermAST.new(@ast_index, @ast_length)
1335
-
1336
- result
1337
- end
1338
- .,.,
1339
-
1340
- module_eval(<<'.,.,', 'mediacloth.y', 476)
1341
- def _reduce_71(val, _values, result)
1342
- term = ListTermAST.new(@ast_index, @ast_length)
1343
- term.children += val[1]
1344
- result = term
1345
-
1346
- result
1347
- end
1348
- .,.,
1349
-
1350
- module_eval(<<'.,.,', 'mediacloth.y', 484)
1351
- def _reduce_72(val, _values, result)
1352
- result = [val[0]]
1353
- result += val[1] if val[1]
1354
-
1355
- result
1356
- end
1357
- .,.,
1358
-
1359
- module_eval(<<'.,.,', 'mediacloth.y', 489)
1360
- def _reduce_73(val, _values, result)
1361
- result = []
1362
-
1363
- result
1364
- end
1365
- .,.,
1366
-
1367
- module_eval(<<'.,.,', 'mediacloth.y', 495)
1368
- def _reduce_74(val, _values, result)
1369
- result = ListDefinitionAST.new(@ast_index, @ast_length)
1370
-
1371
- result
1372
- end
1373
- .,.,
1374
-
1375
- module_eval(<<'.,.,', 'mediacloth.y', 499)
1376
- def _reduce_75(val, _values, result)
1377
- term = ListDefinitionAST.new(@ast_index, @ast_length)
1378
- term.children += val[1]
1379
- result = term
1380
-
1381
- result
1382
- end
1383
- .,.,
1384
-
1385
- module_eval(<<'.,.,', 'mediacloth.y', 506)
1386
- def _reduce_76(val, _values, result)
1387
- p = PreformattedAST.new(@ast_index, @ast_length)
1388
- p.children += val[1]
1389
- result = p
1390
-
1391
- result
1392
- end
1393
- .,.,
1394
-
1395
- module_eval(<<'.,.,', 'mediacloth.y', 512)
1396
- def _reduce_77(val, _values, result)
1397
- p = PreformattedAST.new(@ast_index, @ast_length)
1398
- p.indented = true
1399
- p.children += val[1]
1400
- result = p
1401
-
1402
- result
1403
- end
1404
- .,.,
1405
-
1406
- module_eval(<<'.,.,', 'mediacloth.y', 520)
1407
- def _reduce_78(val, _values, result)
1408
- result = [val[1], val[0].length]
1409
- s = SectionAST.new(@ast_index, @ast_length)
1410
- s.children = val[1]
1411
- s.level = val[0].length
1412
- result = s
1413
-
1414
- result
1415
- end
1416
- .,.,
1417
-
1418
- module_eval(<<'.,.,', 'mediacloth.y', 530)
1419
- def _reduce_79(val, _values, result)
1420
- t = TemplateAST.new(@ast_index, @ast_length)
1421
- t.template_name = val[1]
1422
- t.children = val[2] unless val[2].nil? or val[2].empty?
1423
- result = t
1424
-
1425
- result
1426
- end
1427
- .,.,
1428
-
1429
- module_eval(<<'.,.,', 'mediacloth.y', 539)
1430
- def _reduce_80(val, _values, result)
1431
- result = nil
1432
-
1433
- result
1434
- end
1435
- .,.,
1436
-
1437
- module_eval(<<'.,.,', 'mediacloth.y', 543)
1438
- def _reduce_81(val, _values, result)
1439
- p = TemplateParameterAST.new(@ast_index, @ast_length)
1440
- p.parameter_value = val[1]
1441
- result = [p]
1442
- result += val[2] if val[2]
1443
-
1444
- result
1445
- end
1446
- .,.,
1447
-
1448
- module_eval(<<'.,.,', 'mediacloth.y', 550)
1449
- def _reduce_82(val, _values, result)
1450
- p = TemplateParameterAST.new(@ast_index, @ast_length)
1451
- p.children << val[1]
1452
- result = [p]
1453
- result += val[2] if val[2]
1454
-
1455
- result
1456
- end
1457
- .,.,
1458
-
1459
- def _reduce_none(val, _values, result)
1460
- val[0]
1461
- end
1462
-
1463
- end # class MediaWikiParser