racc 1.4.14-java → 1.4.15-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/Manifest.txt +50 -0
  3. data/ext/racc/com/headius/racc/Cparse.java +66 -23
  4. data/ext/racc/cparse.c +1 -1
  5. data/ext/racc/depend +1 -1
  6. data/lib/racc/cparse-jruby.jar +0 -0
  7. data/lib/racc/info.rb +2 -2
  8. data/test/assets/bibtex.y +141 -0
  9. data/test/assets/cadenza.y +170 -0
  10. data/test/assets/cast.y +926 -0
  11. data/test/assets/csspool.y +729 -0
  12. data/test/assets/edtf.y +583 -0
  13. data/test/assets/huia.y +318 -0
  14. data/test/assets/journey.y +47 -0
  15. data/test/assets/liquor.y +313 -0
  16. data/test/assets/machete.y +423 -0
  17. data/test/assets/macruby.y +2197 -0
  18. data/test/assets/mediacloth.y +599 -0
  19. data/test/assets/mof.y +649 -0
  20. data/test/assets/namae.y +302 -0
  21. data/test/assets/nasl.y +626 -0
  22. data/test/assets/nokogiri-css.y +255 -0
  23. data/test/assets/opal.y +1807 -0
  24. data/test/assets/php_serialization.y +98 -0
  25. data/test/assets/rdblockparser.y +576 -0
  26. data/test/assets/rdinlineparser.y +561 -0
  27. data/test/assets/riml.y +665 -0
  28. data/test/assets/ruby18.y +1943 -0
  29. data/test/assets/ruby19.y +2174 -0
  30. data/test/assets/ruby20.y +2350 -0
  31. data/test/assets/ruby21.y +2359 -0
  32. data/test/assets/ruby22.y +2381 -0
  33. data/test/assets/tp_plus.y +622 -0
  34. data/test/assets/twowaysql.y +278 -0
  35. data/test/helper.rb +50 -34
  36. data/test/regress/bibtex +474 -0
  37. data/test/regress/cadenza +796 -0
  38. data/test/regress/cast +3425 -0
  39. data/test/regress/csspool +2318 -0
  40. data/test/regress/edtf +1794 -0
  41. data/test/regress/huia +1392 -0
  42. data/test/regress/journey +222 -0
  43. data/test/regress/liquor +885 -0
  44. data/test/regress/machete +833 -0
  45. data/test/regress/mediacloth +1463 -0
  46. data/test/regress/mof +1368 -0
  47. data/test/regress/namae +634 -0
  48. data/test/regress/nasl +2058 -0
  49. data/test/regress/nokogiri-css +836 -0
  50. data/test/regress/opal +6429 -0
  51. data/test/regress/php_serialization +336 -0
  52. data/test/regress/rdblockparser +1061 -0
  53. data/test/regress/rdinlineparser +1243 -0
  54. data/test/regress/riml +3297 -0
  55. data/test/regress/ruby18 +6351 -0
  56. data/test/regress/ruby22 +7456 -0
  57. data/test/regress/tp_plus +1933 -0
  58. data/test/regress/twowaysql +556 -0
  59. data/test/test_racc_command.rb +177 -0
  60. metadata +80 -25
  61. data/.gemtest +0 -0
@@ -0,0 +1,2318 @@
1
+ #
2
+ # DO NOT MODIFY!!!!
3
+ # This file is automatically generated by Racc 1.4.14
4
+ # from Racc grammer file "".
5
+ #
6
+
7
+ require 'racc/parser.rb'
8
+ module CSSPool
9
+ module CSS
10
+ class Parser < Racc::Parser
11
+
12
+ module_eval(<<'...end csspool.y/module_eval...', 'csspool.y', 670)
13
+
14
+ def numeric thing
15
+ thing = thing.gsub(/[^\d.]/, '')
16
+ Integer(thing) rescue Float(thing)
17
+ end
18
+
19
+ def interpret_identifier s
20
+ interpret_escapes s
21
+ end
22
+
23
+ def interpret_uri s
24
+ interpret_escapes s.match(/^url\((.*)\)$/mui)[1].strip.match(/^(['"]?)((?:\\.|.)*)\1$/mu)[2]
25
+ end
26
+
27
+ def interpret_string_no_quote s
28
+ interpret_escapes s.match(/^(.*)\)$/mu)[1].strip.match(/^(['"]?)((?:\\.|.)*)\1$/mu)[2]
29
+ end
30
+
31
+ def interpret_string s
32
+ interpret_escapes s.match(/^(['"])((?:\\.|.)*)\1$/mu)[2]
33
+ end
34
+
35
+ def interpret_escapes s
36
+ token_exp = /\\(?:([0-9a-fA-F]{1,6}(?:\r\n|\s)?)|(.))/mu
37
+ return s.gsub(token_exp) do |escape_sequence|
38
+ if !$1.nil?
39
+ code = $1.chomp.to_i 16
40
+ code = 0xFFFD if code > 0x10FFFF
41
+ next [code].pack('U')
42
+ end
43
+ next '' if $2 == "\n"
44
+ next $2
45
+ end
46
+ end
47
+
48
+ # override racc's on_error so we can have context in our error messages
49
+ def on_error(t, val, vstack)
50
+ errcontext = (@ss.pre_match[-10..-1] || @ss.pre_match) +
51
+ @ss.matched + @ss.post_match[0..9]
52
+ line_number = @ss.pre_match.lines.count
53
+ raise ParseError, sprintf("parse error on value %s (%s) " +
54
+ "on line %s around \"%s\"",
55
+ val.inspect, token_to_str(t) || '?',
56
+ line_number, errcontext)
57
+ end
58
+
59
+ def before_pos(val)
60
+ # don't include leading whitespace
61
+ return current_pos - val.last.length + val.last[/\A\s*/].size
62
+ end
63
+
64
+ def after_pos(val)
65
+ # don't include trailing whitespace
66
+ return current_pos - val.last[/\s*\z/].size
67
+ end
68
+
69
+ # charpos will work with multibyte strings but is not available until ruby 2
70
+ def current_pos
71
+ @ss.respond_to?('charpos') ? @ss.charpos : @ss.pos
72
+ end
73
+ ...end csspool.y/module_eval...
74
+ ##### State transition tables begin ###
75
+
76
+ racc_action_table = [
77
+ 9, 10, 137, 83, 37, 31, 55, 139, 59, 39,
78
+ 45, 47, 45, 47, 85, 9, 10, 55, 129, 37,
79
+ 31, 103, 84, 130, 39, 45, 47, 157, 158, 108,
80
+ 113, 20, 113, 56, 37, 114, 23, 114, 163, 39,
81
+ 45, 47, 104, 27, 56, 11, 20, 346, 48, 25,
82
+ 48, 23, 224, 29, 138, 319, 38, 46, 27, 46,
83
+ 11, 108, 113, 48, 25, 9, 10, 114, 29, 37,
84
+ 31, 38, 46, 242, 39, 45, 47, 115, 48, 115,
85
+ 9, 10, 319, 163, 37, 31, 38, 46, 339, 39,
86
+ 45, 47, 351, 306, 245, 223, 20, 108, 113, 37,
87
+ 31, 23, 118, 114, 39, 45, 47, 244, 27, 115,
88
+ 11, 20, 344, 48, 25, 243, 23, 313, 29, 340,
89
+ 314, 38, 46, 27, 345, 11, 20, 55, 48, 25,
90
+ 155, 23, 163, 29, 37, 64, 38, 46, 27, 39,
91
+ 45, 47, 231, 48, 25, 115, 103, 232, 29, -89,
92
+ 229, 38, 46, 203, 56, 230, 123, 250, 37, 319,
93
+ 251, 20, 357, 39, 45, 47, 23, 104, 75, 204,
94
+ 124, 125, 188, 27, 59, 322, 45, 47, 48, 25,
95
+ 187, 3, 359, 29, 74, 73, 38, 46, 83, 126,
96
+ 198, 49, 190, 197, 192, 191, 193, 194, 195, 85,
97
+ 37, 31, 48, 108, 113, 39, 45, 47, 107, 114,
98
+ 38, 46, 53, 105, 48, 103, 153, 170, 151, 98,
99
+ 116, 181, 186, 46, 185, 196, 120, 20, 108, 113,
100
+ 45, 47, 23, 215, 114, 298, 104, 297, 188, 27,
101
+ 59, 201, 45, 47, 48, 25, 187, 121, 252, 29,
102
+ 151, 115, 38, 46, 83, 128, 198, 202, 190, 197,
103
+ 192, 191, 193, 194, 195, 85, 37, 31, 48, 131,
104
+ 77, 39, 45, 47, 45, 47, 115, 46, 203, 37,
105
+ 48, 136, 148, 170, 39, 45, 47, 181, 186, 46,
106
+ 185, 196, 92, 20, 204, 37, 31, -28, 23, 87,
107
+ 39, 45, 47, 156, 201, 27, 160, 163, 94, 75,
108
+ 48, 25, 48, 164, 296, 29, 295, 83, 38, 46,
109
+ 202, 46, 20, 48, 165, 74, 73, 23, 85, 166,
110
+ 167, 38, 46, 188, 27, 59, 84, 168, 169, 48,
111
+ 25, 187, 199, 294, 29, 293, 200, 38, 46, 83,
112
+ 292, 198, 291, 190, 197, 192, 191, 193, 194, 195,
113
+ 85, 37, 31, 92, 37, 31, 39, 45, 47, 39,
114
+ 45, 47, 289, 163, 290, 113, 210, -33, 170, 288,
115
+ 114, 287, 181, 186, 212, 185, 196, 92, 20, -33,
116
+ 216, 37, 217, 23, 218, 219, 39, 45, 47, 108,
117
+ 27, 108, 225, 94, 226, 48, 25, 188, 48, 59,
118
+ 29, 258, 233, 38, 46, 187, 38, 46, 260, 150,
119
+ 152, 151, 115, 83, 129, 198, 259, 190, 197, 192,
120
+ 191, 193, 194, 195, 85, 48, 234, 163, 255, 256,
121
+ 155, 263, 169, 38, 46, 264, 188, 168, 59, 265,
122
+ 266, 92, 170, 92, 187, 92, 181, 186, 92, 185,
123
+ 196, 184, 83, 278, 198, 279, 190, 197, 192, 191,
124
+ 193, 194, 195, 85, 37, 31, 281, 286, 229, 39,
125
+ 45, 47, 198, 231, 190, 197, 192, 191, 193, 194,
126
+ 195, 170, 163, 300, 301, 181, 186, 302, 185, 196,
127
+ 303, 20, 37, 306, 307, 255, 23, 39, 45, 47,
128
+ 75, 163, 188, 27, 59, 185, 168, 312, 48, 25,
129
+ 187, 317, 319, 29, 323, 324, 38, 46, 83, 325,
130
+ 198, 326, 190, 197, 192, 191, 193, 194, 195, 85,
131
+ 327, 328, 329, 330, 331, 332, 48, 333, 334, 306,
132
+ 188, 163, 59, 338, 38, 46, nil, 170, 187, nil,
133
+ nil, 181, 186, nil, 185, 196, 83, nil, 198, nil,
134
+ 190, 197, 192, 191, 193, 194, 195, 85, 37, 31,
135
+ nil, nil, nil, 39, 45, 47, nil, nil, 188, nil,
136
+ 59, 285, nil, nil, nil, 170, 187, nil, nil, 181,
137
+ 186, nil, 185, 196, 83, 141, 198, nil, 190, 197,
138
+ 192, 191, 193, 194, 195, 85, nil, nil, nil, 143,
139
+ nil, nil, 48, 241, 235, 236, 237, nil, nil, nil,
140
+ 38, 46, nil, 170, nil, nil, 145, 181, 186, nil,
141
+ 185, 196, nil, 144, nil, 146, nil, 147, nil, 142,
142
+ 238, 239, 240, 272, nil, 83, nil, 198, nil, 190,
143
+ 197, 192, 191, 193, 194, 195, 272, nil, 83, nil,
144
+ 198, nil, 190, 197, 192, 191, 193, 194, 195, 272,
145
+ nil, 83, nil, 198, nil, 190, 197, 192, 191, 193,
146
+ 194, 195, 272, nil, 83, nil, 198, nil, 190, 197,
147
+ 192, 191, 193, 194, 195, 272, nil, 83, nil, 198,
148
+ nil, 190, 197, 192, 191, 193, 194, 195, 272, nil,
149
+ 83, nil, 198, nil, 190, 197, 192, 191, 193, 194,
150
+ 195 ]
151
+
152
+ racc_action_check = [
153
+ 2, 2, 47, 22, 2, 2, 11, 47, 11, 2,
154
+ 2, 2, 41, 41, 22, 5, 5, 10, 38, 5,
155
+ 5, 217, 22, 38, 5, 5, 5, 70, 70, 221,
156
+ 221, 2, 210, 11, 144, 221, 2, 210, 312, 144,
157
+ 144, 144, 217, 2, 10, 2, 5, 316, 2, 2,
158
+ 41, 5, 112, 2, 47, 320, 2, 2, 5, 41,
159
+ 5, 110, 110, 5, 5, 6, 6, 110, 5, 6,
160
+ 6, 5, 5, 142, 6, 6, 6, 221, 144, 210,
161
+ 7, 7, 321, 335, 7, 7, 144, 144, 309, 7,
162
+ 7, 7, 337, 338, 143, 112, 6, 30, 30, 15,
163
+ 15, 6, 30, 30, 15, 15, 15, 143, 6, 110,
164
+ 6, 7, 315, 6, 6, 142, 7, 269, 6, 309,
165
+ 269, 6, 6, 7, 315, 7, 15, 58, 7, 7,
166
+ 58, 15, 340, 7, 19, 19, 7, 7, 15, 19,
167
+ 19, 19, 131, 15, 15, 30, 99, 131, 15, 99,
168
+ 128, 15, 15, 91, 58, 128, 34, 149, 302, 349,
169
+ 149, 19, 350, 302, 302, 302, 19, 99, 157, 91,
170
+ 34, 34, 286, 19, 286, 286, 42, 42, 19, 19,
171
+ 286, 1, 358, 19, 157, 157, 19, 19, 286, 34,
172
+ 286, 3, 286, 286, 286, 286, 286, 286, 286, 286,
173
+ 13, 13, 302, 28, 28, 13, 13, 13, 28, 28,
174
+ 302, 302, 9, 27, 42, 26, 57, 286, 57, 26,
175
+ 29, 286, 286, 42, 286, 286, 32, 13, 100, 100,
176
+ 43, 43, 13, 100, 100, 240, 26, 240, 285, 13,
177
+ 285, 206, 44, 44, 13, 13, 285, 33, 154, 13,
178
+ 154, 28, 13, 13, 285, 37, 285, 206, 285, 285,
179
+ 285, 285, 285, 285, 285, 285, 21, 21, 43, 39,
180
+ 21, 21, 21, 21, 35, 35, 100, 43, 207, 122,
181
+ 44, 46, 53, 285, 122, 122, 122, 285, 285, 44,
182
+ 285, 285, 25, 21, 207, 24, 24, 20, 21, 24,
183
+ 24, 24, 24, 67, 90, 21, 71, 75, 25, 20,
184
+ 21, 21, 35, 76, 239, 21, 239, 166, 21, 21,
185
+ 90, 35, 24, 122, 78, 20, 20, 24, 166, 79,
186
+ 80, 122, 122, 353, 24, 353, 166, 81, 82, 24,
187
+ 24, 353, 86, 238, 24, 238, 88, 24, 24, 353,
188
+ 237, 353, 237, 353, 353, 353, 353, 353, 353, 353,
189
+ 353, 14, 14, 94, 31, 31, 14, 14, 14, 31,
190
+ 31, 31, 236, 270, 236, 92, 92, 270, 353, 235,
191
+ 92, 235, 353, 353, 97, 353, 353, 92, 14, 270,
192
+ 101, 121, 102, 14, 105, 106, 121, 121, 121, 108,
193
+ 14, 109, 114, 92, 117, 14, 14, 171, 31, 171,
194
+ 14, 171, 137, 14, 14, 171, 31, 31, 171, 54,
195
+ 54, 54, 92, 171, 138, 171, 171, 171, 171, 171,
196
+ 171, 171, 171, 171, 171, 121, 139, 147, 161, 162,
197
+ 172, 175, 176, 121, 121, 177, 83, 179, 83, 183,
198
+ 185, 201, 171, 202, 83, 203, 171, 171, 204, 171,
199
+ 171, 83, 83, 208, 83, 209, 83, 83, 83, 83,
200
+ 83, 83, 83, 83, 12, 12, 214, 224, 233, 12,
201
+ 12, 12, 189, 234, 189, 189, 189, 189, 189, 189,
202
+ 189, 83, 243, 245, 246, 83, 83, 247, 83, 83,
203
+ 248, 12, 146, 249, 251, 254, 12, 146, 146, 146,
204
+ 255, 256, 261, 12, 261, 266, 267, 268, 12, 12,
205
+ 261, 280, 284, 12, 287, 288, 12, 12, 261, 289,
206
+ 261, 290, 261, 261, 261, 261, 261, 261, 261, 261,
207
+ 291, 292, 293, 294, 295, 296, 146, 297, 298, 299,
208
+ 322, 304, 322, 306, 146, 146, nil, 261, 322, nil,
209
+ nil, 261, 261, nil, 261, 261, 322, nil, 322, nil,
210
+ 322, 322, 322, 322, 322, 322, 322, 322, 64, 64,
211
+ nil, nil, nil, 64, 64, 64, nil, nil, 223, nil,
212
+ 223, 223, nil, nil, nil, 322, 223, nil, nil, 322,
213
+ 322, nil, 322, 322, 223, 48, 223, nil, 223, 223,
214
+ 223, 223, 223, 223, 223, 223, nil, nil, nil, 48,
215
+ nil, nil, 64, 140, 140, 140, 140, nil, nil, nil,
216
+ 64, 64, nil, 223, nil, nil, 48, 223, 223, nil,
217
+ 223, 223, nil, 48, nil, 48, nil, 48, nil, 48,
218
+ 140, 140, 140, 272, nil, 272, nil, 272, nil, 272,
219
+ 272, 272, 272, 272, 272, 272, 313, nil, 313, nil,
220
+ 313, nil, 313, 313, 313, 313, 313, 313, 313, 314,
221
+ nil, 314, nil, 314, nil, 314, 314, 314, 314, 314,
222
+ 314, 314, 344, nil, 344, nil, 344, nil, 344, 344,
223
+ 344, 344, 344, 344, 344, 345, nil, 345, nil, 345,
224
+ nil, 345, 345, 345, 345, 345, 345, 345, 186, nil,
225
+ 186, nil, 186, nil, 186, 186, 186, 186, 186, 186,
226
+ 186 ]
227
+
228
+ racc_action_pointer = [
229
+ nil, 181, -2, 191, nil, 13, 63, 78, nil, 208,
230
+ 13, 2, 468, 194, 355, 93, nil, nil, nil, 128,
231
+ 291, 260, -17, nil, 289, 274, 209, 207, 198, 211,
232
+ 92, 358, 217, 239, 149, 262, nil, 197, 12, 211,
233
+ nil, 0, 164, 218, 230, nil, 275, -4, 599, nil,
234
+ nil, nil, nil, 277, 414, nil, nil, 211, 123, nil,
235
+ nil, nil, nil, nil, 572, nil, nil, 293, nil, nil,
236
+ 19, 300, nil, nil, nil, 300, 303, nil, 315, 321,
237
+ 323, 330, 331, 442, nil, nil, 332, nil, 337, nil,
238
+ 268, 117, 369, nil, 345, nil, nil, 374, nil, 140,
239
+ 223, 381, 384, nil, nil, 385, 385, nil, 394, 396,
240
+ 56, nil, 45, nil, 396, nil, nil, 394, nil, nil,
241
+ nil, 385, 273, nil, nil, nil, nil, nil, 144, nil,
242
+ nil, 136, nil, nil, nil, nil, nil, 354, 418, 378,
243
+ 609, nil, 67, 88, 28, nil, 496, 430, nil, 152,
244
+ nil, nil, nil, nil, 243, nil, nil, 150, nil, nil,
245
+ nil, 402, 433, nil, nil, nil, 297, nil, nil, nil,
246
+ nil, 403, 433, nil, nil, 434, 435, 438, nil, 440,
247
+ nil, nil, nil, 430, nil, 442, 700, nil, nil, 460,
248
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
249
+ nil, 433, 435, 437, 440, nil, 205, 242, 444, 446,
250
+ 26, nil, nil, nil, 466, nil, nil, 15, nil, nil,
251
+ nil, 24, nil, 584, 427, nil, nil, nil, nil, nil,
252
+ nil, nil, nil, 472, 477, 375, 368, 346, 339, 310,
253
+ 231, nil, nil, 485, nil, 474, 475, 489, 481, 497,
254
+ nil, 498, nil, nil, 469, 492, 504, nil, nil, nil,
255
+ nil, 508, nil, nil, nil, nil, 459, 509, 498, 95,
256
+ 366, nil, 635, nil, nil, nil, nil, nil, nil, nil,
257
+ 502, nil, nil, nil, 490, 234, 168, 510, 511, 515,
258
+ 517, 526, 527, 528, 529, 530, 531, 533, 534, 543,
259
+ nil, nil, 152, nil, 544, nil, 545, nil, nil, 69,
260
+ nil, nil, 31, 648, 661, 101, 28, nil, nil, nil,
261
+ 23, 50, 546, nil, nil, nil, nil, nil, nil, nil,
262
+ nil, nil, nil, nil, nil, 76, nil, 73, 87, nil,
263
+ 125, nil, nil, nil, 674, 687, nil, nil, nil, 127,
264
+ 143, nil, nil, 329, nil, nil, nil, nil, 163, nil ]
265
+
266
+ racc_action_default = [
267
+ -1, -229, -10, -229, -2, -6, -7, -8, -9, -229,
268
+ -229, -229, -41, -42, -43, -44, -45, -46, -47, -33,
269
+ -23, -229, -229, -55, -229, -229, -89, -229, -229, -229,
270
+ -229, -229, -229, -103, -105, -111, -112, -115, -229, -120,
271
+ -119, -124, -125, -126, -127, -132, -229, -229, -229, 360,
272
+ -3, -4, -5, -229, -229, -15, -16, -229, -229, -228,
273
+ -37, -38, -39, -40, -32, -48, -49, -229, -99, -21,
274
+ -229, -229, -35, -26, -27, -33, -229, -53, -229, -57,
275
+ -58, -59, -60, -229, -198, -214, -229, -62, -229, -64,
276
+ -65, -66, -229, -71, -229, -73, -74, -229, -82, -85,
277
+ -229, -229, -91, -92, -93, -229, -229, -95, -160, -165,
278
+ -166, -167, -229, -174, -229, -176, -96, -229, -98, -100,
279
+ -101, -229, -229, -106, -107, -108, -109, -110, -229, -117,
280
+ -121, -229, -128, -129, -130, -131, -133, -115, -229, -229,
281
+ -229, -147, -229, -229, -229, -152, -229, -33, -11, -229,
282
+ -13, -14, -20, -18, -229, -227, -50, -28, -51, -35,
283
+ -29, -25, -229, -32, -52, -54, -229, -197, -194, -213,
284
+ -36, -182, -183, -184, -185, -186, -187, -188, -189, -190,
285
+ -191, -192, -193, -229, -196, -200, -229, -212, -216, -229,
286
+ -218, -219, -220, -221, -222, -223, -224, -225, -226, -61,
287
+ -63, -229, -229, -229, -229, -67, -68, -69, -229, -229,
288
+ -229, -72, -81, -84, -229, -87, -88, -89, -83, -94,
289
+ -161, -164, -163, -229, -229, -175, -97, -102, -104, -116,
290
+ -123, -118, -122, -229, -229, -229, -229, -229, -229, -229,
291
+ -229, -146, -148, -33, -149, -229, -229, -114, -229, -156,
292
+ -12, -229, -17, -22, -24, -229, -33, -56, -177, -178,
293
+ -179, -229, -181, -215, -211, -195, -229, -209, -229, -202,
294
+ -205, -208, -229, -217, -76, -78, -75, -77, -70, -79,
295
+ -229, -86, -90, -162, -173, -229, -229, -229, -229, -229,
296
+ -229, -229, -229, -229, -229, -229, -229, -229, -229, -156,
297
+ -150, -151, -229, -153, -33, -157, -158, -19, -34, -229,
298
+ -180, -199, -33, -229, -229, -229, -229, -80, -168, -172,
299
+ -173, -173, -229, -134, -135, -136, -137, -138, -139, -140,
300
+ -141, -142, -143, -144, -145, -33, -113, -229, -229, -30,
301
+ -33, -201, -203, -204, -229, -229, -210, -169, -170, -173,
302
+ -229, -154, -159, -229, -206, -207, -171, -155, -229, -31 ]
303
+
304
+ racc_goto_table = [
305
+ 81, 248, 183, 68, 106, 91, 117, 271, 78, 246,
306
+ 273, 247, 82, 69, 209, 161, 97, 90, 268, 304,
307
+ 89, 119, 54, 57, 354, 355, 318, 60, 61, 62,
308
+ 63, 220, 221, 58, 65, 127, 76, 282, 70, 86,
309
+ 227, 132, 133, 134, 135, 4, 228, 208, 50, 51,
310
+ 52, 122, 159, 308, 119, 140, 67, 352, 66, 162,
311
+ 1, 261, 347, 348, 2, 311, 88, 149, nil, 335,
312
+ 154, nil, 207, nil, 211, nil, 214, nil, nil, nil,
313
+ nil, nil, nil, nil, 206, nil, 222, 205, nil, 213,
314
+ 262, 356, nil, 271, nil, nil, nil, nil, nil, nil,
315
+ nil, nil, 254, nil, 316, nil, nil, nil, nil, nil,
316
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
317
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
318
+ nil, 249, 280, nil, 271, 271, nil, nil, nil, nil,
319
+ nil, nil, 284, nil, 81, 342, 343, nil, nil, nil,
320
+ 253, nil, 257, nil, nil, nil, 82, 336, nil, nil,
321
+ nil, nil, nil, nil, 267, 271, 271, 247, nil, nil,
322
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
323
+ 310, 274, 275, 276, 277, nil, nil, nil, nil, nil,
324
+ nil, nil, nil, nil, nil, nil, nil, 283, nil, nil,
325
+ nil, nil, nil, nil, 320, 321, nil, nil, nil, nil,
326
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
327
+ nil, nil, nil, nil, nil, nil, nil, 299, nil, nil,
328
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
329
+ 309, 349, nil, nil, nil, nil, nil, nil, nil, nil,
330
+ 267, nil, nil, nil, 315, nil, nil, nil, nil, nil,
331
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
332
+ nil, nil, 358, nil, nil, nil, nil, nil, nil, nil,
333
+ nil, nil, nil, nil, nil, nil, nil, nil, 337, nil,
334
+ nil, 267, 267, nil, nil, nil, 341, nil, nil, nil,
335
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
336
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 350,
337
+ nil, nil, 267, 267, 353 ]
338
+
339
+ racc_goto_check = [
340
+ 35, 62, 18, 17, 51, 41, 51, 77, 32, 58,
341
+ 77, 58, 36, 12, 46, 15, 48, 40, 82, 68,
342
+ 39, 55, 8, 8, 84, 84, 73, 7, 7, 7,
343
+ 7, 70, 70, 10, 7, 61, 7, 52, 11, 7,
344
+ 56, 61, 61, 61, 61, 2, 57, 42, 2, 2,
345
+ 2, 59, 14, 16, 55, 63, 27, 69, 28, 17,
346
+ 1, 74, 73, 73, 3, 81, 38, 9, nil, 68,
347
+ 8, nil, 41, nil, 41, nil, 51, nil, nil, nil,
348
+ nil, nil, nil, nil, 40, nil, 51, 39, nil, 48,
349
+ 18, 73, nil, 77, nil, nil, nil, nil, nil, nil,
350
+ nil, nil, 15, nil, 82, nil, nil, nil, nil, nil,
351
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
352
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
353
+ nil, 17, 46, nil, 77, 77, nil, nil, nil, nil,
354
+ nil, nil, 18, nil, 35, 82, 82, nil, nil, nil,
355
+ 12, nil, 32, nil, nil, nil, 36, 62, nil, nil,
356
+ nil, nil, nil, nil, 35, 77, 77, 58, nil, nil,
357
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
358
+ 18, 41, 41, 41, 41, nil, nil, nil, nil, nil,
359
+ nil, nil, nil, nil, nil, nil, nil, 51, nil, nil,
360
+ nil, nil, nil, nil, 18, 18, nil, nil, nil, nil,
361
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
362
+ nil, nil, nil, nil, nil, nil, nil, 17, nil, nil,
363
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
364
+ 17, 18, nil, nil, nil, nil, nil, nil, nil, nil,
365
+ 35, nil, nil, nil, 17, nil, nil, nil, nil, nil,
366
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
367
+ nil, nil, 18, nil, nil, nil, nil, nil, nil, nil,
368
+ nil, nil, nil, nil, nil, nil, nil, nil, 17, nil,
369
+ nil, 35, 35, nil, nil, nil, 17, nil, nil, nil,
370
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
371
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 17,
372
+ nil, nil, 35, 35, 17 ]
373
+
374
+ racc_goto_pointer = [
375
+ nil, 60, 43, 64, nil, nil, nil, 15, 12, 13,
376
+ 22, 18, -7, nil, -19, -57, -202, -16, -81, nil,
377
+ nil, nil, nil, nil, nil, nil, nil, 37, 39, nil,
378
+ nil, nil, -14, nil, nil, -22, -10, nil, 41, -5,
379
+ -8, -20, -45, nil, nil, nil, -78, nil, -10, nil,
380
+ nil, -24, -180, nil, nil, -10, -81, -76, -135, 17,
381
+ nil, 0, -145, 8, nil, nil, nil, nil, -230, -281,
382
+ -77, nil, nil, -258, -110, nil, nil, -179, nil, nil,
383
+ nil, -201, -168, nil, -320, nil ]
384
+
385
+ racc_goto_default = [
386
+ nil, nil, nil, nil, 5, 6, 7, 8, nil, nil,
387
+ 172, nil, nil, 71, nil, nil, 72, nil, nil, 180,
388
+ 12, 13, 14, 15, 16, 17, 18, nil, nil, 19,
389
+ 21, 22, nil, 79, 80, 179, 176, 24, nil, nil,
390
+ nil, nil, nil, 93, 95, 96, 111, 26, nil, 99,
391
+ 100, nil, 101, 102, 28, 30, 32, 33, 34, nil,
392
+ 35, 36, nil, 40, 41, 42, 43, 44, nil, 305,
393
+ 110, 109, 112, nil, nil, 171, 173, 174, 175, 177,
394
+ 178, 182, nil, 269, 270, 189 ]
395
+
396
+ racc_reduce_table = [
397
+ 0, 0, :racc_error,
398
+ 0, 63, :_reduce_1,
399
+ 2, 61, :_reduce_2,
400
+ 2, 62, :_reduce_none,
401
+ 2, 62, :_reduce_none,
402
+ 2, 62, :_reduce_none,
403
+ 1, 62, :_reduce_none,
404
+ 1, 62, :_reduce_none,
405
+ 1, 62, :_reduce_none,
406
+ 1, 62, :_reduce_none,
407
+ 0, 62, :_reduce_none,
408
+ 3, 64, :_reduce_11,
409
+ 4, 65, :_reduce_12,
410
+ 3, 65, :_reduce_13,
411
+ 2, 68, :_reduce_none,
412
+ 1, 68, :_reduce_15,
413
+ 1, 68, :_reduce_16,
414
+ 4, 66, :_reduce_17,
415
+ 3, 66, :_reduce_18,
416
+ 3, 69, :_reduce_19,
417
+ 1, 69, :_reduce_20,
418
+ 1, 71, :_reduce_21,
419
+ 3, 71, :_reduce_22,
420
+ 0, 71, :_reduce_23,
421
+ 3, 72, :_reduce_24,
422
+ 2, 72, :_reduce_25,
423
+ 1, 73, :_reduce_26,
424
+ 1, 73, :_reduce_27,
425
+ 0, 73, :_reduce_28,
426
+ 1, 74, :_reduce_29,
427
+ 5, 76, :_reduce_30,
428
+ 8, 76, :_reduce_31,
429
+ 1, 77, :_reduce_32,
430
+ 0, 77, :_reduce_33,
431
+ 3, 75, :_reduce_34,
432
+ 0, 75, :_reduce_35,
433
+ 1, 79, :_reduce_36,
434
+ 2, 67, :_reduce_none,
435
+ 2, 67, :_reduce_none,
436
+ 2, 67, :_reduce_none,
437
+ 2, 67, :_reduce_none,
438
+ 1, 67, :_reduce_none,
439
+ 1, 67, :_reduce_none,
440
+ 1, 67, :_reduce_none,
441
+ 1, 67, :_reduce_none,
442
+ 1, 81, :_reduce_none,
443
+ 1, 81, :_reduce_none,
444
+ 1, 81, :_reduce_none,
445
+ 1, 87, :_reduce_none,
446
+ 1, 87, :_reduce_none,
447
+ 3, 84, :_reduce_50,
448
+ 3, 89, :_reduce_51,
449
+ 3, 85, :_reduce_52,
450
+ 2, 85, :_reduce_53,
451
+ 3, 90, :_reduce_54,
452
+ 1, 91, :_reduce_55,
453
+ 3, 92, :_reduce_56,
454
+ 1, 92, :_reduce_57,
455
+ 1, 93, :_reduce_none,
456
+ 1, 93, :_reduce_none,
457
+ 1, 93, :_reduce_none,
458
+ 3, 86, :_reduce_61,
459
+ 2, 86, :_reduce_62,
460
+ 3, 97, :_reduce_63,
461
+ 1, 98, :_reduce_64,
462
+ 1, 98, :_reduce_65,
463
+ 1, 98, :_reduce_66,
464
+ 1, 102, :_reduce_67,
465
+ 1, 102, :_reduce_68,
466
+ 1, 102, :_reduce_69,
467
+ 3, 101, :_reduce_70,
468
+ 1, 101, :_reduce_71,
469
+ 2, 99, :_reduce_72,
470
+ 1, 100, :_reduce_none,
471
+ 1, 100, :_reduce_none,
472
+ 3, 104, :_reduce_75,
473
+ 3, 104, :_reduce_76,
474
+ 3, 105, :_reduce_77,
475
+ 3, 105, :_reduce_78,
476
+ 3, 103, :_reduce_79,
477
+ 4, 103, :_reduce_80,
478
+ 3, 82, :_reduce_none,
479
+ 2, 82, :_reduce_none,
480
+ 3, 107, :_reduce_83,
481
+ 2, 108, :_reduce_none,
482
+ 1, 108, :_reduce_none,
483
+ 3, 109, :_reduce_86,
484
+ 2, 109, :_reduce_87,
485
+ 2, 110, :_reduce_88,
486
+ 0, 112, :_reduce_none,
487
+ 3, 112, :_reduce_90,
488
+ 1, 112, :_reduce_none,
489
+ 1, 113, :_reduce_none,
490
+ 1, 113, :_reduce_93,
491
+ 3, 83, :_reduce_94,
492
+ 2, 83, :_reduce_95,
493
+ 2, 114, :_reduce_96,
494
+ 3, 80, :_reduce_97,
495
+ 2, 80, :_reduce_98,
496
+ 1, 88, :_reduce_99,
497
+ 2, 115, :_reduce_100,
498
+ 2, 115, :_reduce_101,
499
+ 3, 116, :_reduce_102,
500
+ 1, 116, :_reduce_103,
501
+ 3, 117, :_reduce_104,
502
+ 1, 117, :_reduce_none,
503
+ 1, 119, :_reduce_106,
504
+ 1, 119, :_reduce_107,
505
+ 1, 119, :_reduce_108,
506
+ 1, 119, :_reduce_109,
507
+ 2, 118, :_reduce_110,
508
+ 1, 118, :_reduce_111,
509
+ 1, 118, :_reduce_112,
510
+ 3, 122, :_reduce_113,
511
+ 1, 122, :_reduce_none,
512
+ 1, 123, :_reduce_115,
513
+ 3, 123, :_reduce_116,
514
+ 2, 123, :_reduce_117,
515
+ 3, 123, :_reduce_118,
516
+ 1, 120, :_reduce_119,
517
+ 1, 120, :_reduce_120,
518
+ 2, 120, :_reduce_121,
519
+ 3, 120, :_reduce_122,
520
+ 3, 120, :_reduce_123,
521
+ 1, 121, :_reduce_124,
522
+ 1, 121, :_reduce_125,
523
+ 1, 121, :_reduce_126,
524
+ 1, 121, :_reduce_127,
525
+ 2, 121, :_reduce_128,
526
+ 2, 121, :_reduce_129,
527
+ 2, 121, :_reduce_130,
528
+ 2, 121, :_reduce_131,
529
+ 1, 124, :_reduce_132,
530
+ 2, 125, :_reduce_133,
531
+ 5, 126, :_reduce_134,
532
+ 5, 126, :_reduce_135,
533
+ 5, 126, :_reduce_136,
534
+ 5, 126, :_reduce_137,
535
+ 5, 126, :_reduce_138,
536
+ 5, 126, :_reduce_139,
537
+ 5, 126, :_reduce_140,
538
+ 5, 126, :_reduce_141,
539
+ 5, 126, :_reduce_142,
540
+ 5, 126, :_reduce_143,
541
+ 5, 126, :_reduce_144,
542
+ 5, 126, :_reduce_145,
543
+ 3, 126, :_reduce_146,
544
+ 2, 127, :_reduce_147,
545
+ 3, 127, :_reduce_148,
546
+ 3, 127, :_reduce_149,
547
+ 4, 127, :_reduce_150,
548
+ 4, 127, :_reduce_151,
549
+ 2, 127, :_reduce_152,
550
+ 4, 127, :_reduce_153,
551
+ 6, 127, :_reduce_154,
552
+ 7, 127, :_reduce_155,
553
+ 0, 128, :_reduce_none,
554
+ 1, 128, :_reduce_none,
555
+ 1, 129, :_reduce_none,
556
+ 3, 129, :_reduce_none,
557
+ 1, 130, :_reduce_none,
558
+ 2, 130, :_reduce_none,
559
+ 3, 111, :_reduce_none,
560
+ 2, 111, :_reduce_none,
561
+ 2, 111, :_reduce_none,
562
+ 1, 111, :_reduce_none,
563
+ 1, 111, :_reduce_none,
564
+ 1, 131, :_reduce_167,
565
+ 4, 106, :_reduce_168,
566
+ 5, 106, :_reduce_169,
567
+ 5, 106, :_reduce_170,
568
+ 6, 106, :_reduce_171,
569
+ 1, 133, :_reduce_172,
570
+ 0, 133, :_reduce_173,
571
+ 1, 132, :_reduce_174,
572
+ 2, 132, :_reduce_175,
573
+ 1, 132, :_reduce_176,
574
+ 1, 134, :_reduce_none,
575
+ 1, 134, :_reduce_none,
576
+ 1, 134, :_reduce_none,
577
+ 3, 78, :_reduce_180,
578
+ 2, 78, :_reduce_181,
579
+ 1, 78, :_reduce_182,
580
+ 1, 135, :_reduce_none,
581
+ 1, 135, :_reduce_none,
582
+ 1, 135, :_reduce_none,
583
+ 1, 135, :_reduce_none,
584
+ 1, 135, :_reduce_none,
585
+ 1, 135, :_reduce_none,
586
+ 1, 135, :_reduce_none,
587
+ 1, 135, :_reduce_none,
588
+ 1, 135, :_reduce_none,
589
+ 1, 135, :_reduce_none,
590
+ 1, 135, :_reduce_none,
591
+ 2, 95, :_reduce_194,
592
+ 3, 95, :_reduce_195,
593
+ 2, 95, :_reduce_196,
594
+ 2, 94, :_reduce_197,
595
+ 1, 94, :_reduce_198,
596
+ 3, 141, :_reduce_none,
597
+ 1, 141, :_reduce_none,
598
+ 4, 140, :_reduce_201,
599
+ 1, 142, :_reduce_none,
600
+ 3, 142, :_reduce_203,
601
+ 3, 142, :_reduce_204,
602
+ 1, 143, :_reduce_none,
603
+ 4, 143, :_reduce_206,
604
+ 4, 143, :_reduce_207,
605
+ 1, 144, :_reduce_208,
606
+ 1, 144, :_reduce_209,
607
+ 3, 144, :_reduce_210,
608
+ 2, 139, :_reduce_211,
609
+ 1, 139, :_reduce_212,
610
+ 2, 96, :_reduce_213,
611
+ 1, 96, :_reduce_214,
612
+ 2, 138, :_reduce_215,
613
+ 1, 138, :_reduce_216,
614
+ 2, 137, :_reduce_217,
615
+ 1, 137, :_reduce_218,
616
+ 1, 137, :_reduce_219,
617
+ 1, 137, :_reduce_220,
618
+ 1, 137, :_reduce_221,
619
+ 1, 137, :_reduce_222,
620
+ 1, 137, :_reduce_223,
621
+ 1, 136, :_reduce_224,
622
+ 1, 145, :_reduce_225,
623
+ 1, 145, :_reduce_226,
624
+ 2, 70, :_reduce_227,
625
+ 1, 70, :_reduce_228 ]
626
+
627
+ racc_reduce_n = 229
628
+
629
+ racc_shift_n = 360
630
+
631
+ racc_token_table = {
632
+ false => 0,
633
+ :error => 1,
634
+ :CHARSET_SYM => 2,
635
+ :IMPORT_SYM => 3,
636
+ :STRING => 4,
637
+ :SEMI => 5,
638
+ :IDENT => 6,
639
+ :S => 7,
640
+ :COMMA => 8,
641
+ :LBRACE => 9,
642
+ :RBRACE => 10,
643
+ :STAR => 11,
644
+ :HASH => 12,
645
+ :LSQUARE => 13,
646
+ :RSQUARE => 14,
647
+ :EQUAL => 15,
648
+ :INCLUDES => 16,
649
+ :DASHMATCH => 17,
650
+ :LPAREN => 18,
651
+ :RPAREN => 19,
652
+ :FUNCTION => 20,
653
+ :GREATER => 21,
654
+ :PLUS => 22,
655
+ :SLASH => 23,
656
+ :NUMBER => 24,
657
+ :MINUS => 25,
658
+ :LENGTH => 26,
659
+ :PERCENTAGE => 27,
660
+ :ANGLE => 28,
661
+ :TIME => 29,
662
+ :FREQ => 30,
663
+ :URI => 31,
664
+ :IMPORTANT_SYM => 32,
665
+ :MEDIA_SYM => 33,
666
+ :NOT => 34,
667
+ :ONLY => 35,
668
+ :AND => 36,
669
+ :NTH_PSEUDO_CLASS => 37,
670
+ :DOCUMENT_QUERY_SYM => 38,
671
+ :FUNCTION_NO_QUOTE => 39,
672
+ :TILDE => 40,
673
+ :PREFIXMATCH => 41,
674
+ :SUFFIXMATCH => 42,
675
+ :SUBSTRINGMATCH => 43,
676
+ :NOT_PSEUDO_CLASS => 44,
677
+ :KEYFRAMES_SYM => 45,
678
+ :MATCHES_PSEUDO_CLASS => 46,
679
+ :NAMESPACE_SYM => 47,
680
+ :MOZ_PSEUDO_ELEMENT => 48,
681
+ :RESOLUTION => 49,
682
+ :COLON => 50,
683
+ :SUPPORTS_SYM => 51,
684
+ :OR => 52,
685
+ :VARIABLE_NAME => 53,
686
+ :CALC_SYM => 54,
687
+ :FONTFACE_SYM => 55,
688
+ :UNICODE_RANGE => 56,
689
+ :RATIO => 57,
690
+ "|" => 58,
691
+ "." => 59 }
692
+
693
+ racc_nt_base = 60
694
+
695
+ racc_use_result_var = true
696
+
697
+ Racc_arg = [
698
+ racc_action_table,
699
+ racc_action_check,
700
+ racc_action_default,
701
+ racc_action_pointer,
702
+ racc_goto_table,
703
+ racc_goto_check,
704
+ racc_goto_default,
705
+ racc_goto_pointer,
706
+ racc_nt_base,
707
+ racc_reduce_table,
708
+ racc_token_table,
709
+ racc_shift_n,
710
+ racc_reduce_n,
711
+ racc_use_result_var ]
712
+
713
+ Racc_token_to_s_table = [
714
+ "$end",
715
+ "error",
716
+ "CHARSET_SYM",
717
+ "IMPORT_SYM",
718
+ "STRING",
719
+ "SEMI",
720
+ "IDENT",
721
+ "S",
722
+ "COMMA",
723
+ "LBRACE",
724
+ "RBRACE",
725
+ "STAR",
726
+ "HASH",
727
+ "LSQUARE",
728
+ "RSQUARE",
729
+ "EQUAL",
730
+ "INCLUDES",
731
+ "DASHMATCH",
732
+ "LPAREN",
733
+ "RPAREN",
734
+ "FUNCTION",
735
+ "GREATER",
736
+ "PLUS",
737
+ "SLASH",
738
+ "NUMBER",
739
+ "MINUS",
740
+ "LENGTH",
741
+ "PERCENTAGE",
742
+ "ANGLE",
743
+ "TIME",
744
+ "FREQ",
745
+ "URI",
746
+ "IMPORTANT_SYM",
747
+ "MEDIA_SYM",
748
+ "NOT",
749
+ "ONLY",
750
+ "AND",
751
+ "NTH_PSEUDO_CLASS",
752
+ "DOCUMENT_QUERY_SYM",
753
+ "FUNCTION_NO_QUOTE",
754
+ "TILDE",
755
+ "PREFIXMATCH",
756
+ "SUFFIXMATCH",
757
+ "SUBSTRINGMATCH",
758
+ "NOT_PSEUDO_CLASS",
759
+ "KEYFRAMES_SYM",
760
+ "MATCHES_PSEUDO_CLASS",
761
+ "NAMESPACE_SYM",
762
+ "MOZ_PSEUDO_ELEMENT",
763
+ "RESOLUTION",
764
+ "COLON",
765
+ "SUPPORTS_SYM",
766
+ "OR",
767
+ "VARIABLE_NAME",
768
+ "CALC_SYM",
769
+ "FONTFACE_SYM",
770
+ "UNICODE_RANGE",
771
+ "RATIO",
772
+ "\"|\"",
773
+ "\".\"",
774
+ "$start",
775
+ "document",
776
+ "stylesheet",
777
+ "@1",
778
+ "charset",
779
+ "import",
780
+ "namespace",
781
+ "body",
782
+ "import_location",
783
+ "medium",
784
+ "ident",
785
+ "media_query_list",
786
+ "media_query",
787
+ "optional_only_or_not",
788
+ "media_type",
789
+ "optional_and_exprs",
790
+ "media_expr",
791
+ "optional_space",
792
+ "expr",
793
+ "resolution",
794
+ "ruleset",
795
+ "conditional_rule",
796
+ "keyframes_rule",
797
+ "fontface_rule",
798
+ "media",
799
+ "document_query",
800
+ "supports",
801
+ "body_in_media",
802
+ "empty_ruleset",
803
+ "start_media",
804
+ "start_document_query",
805
+ "start_document_query_pos",
806
+ "url_match_fns",
807
+ "url_match_fn",
808
+ "function_no_quote",
809
+ "function",
810
+ "uri",
811
+ "start_supports",
812
+ "supports_condition_root",
813
+ "supports_negation",
814
+ "supports_conjunction_or_disjunction",
815
+ "supports_condition_in_parens",
816
+ "supports_condition",
817
+ "supports_declaration_condition",
818
+ "supports_conjunction",
819
+ "supports_disjunction",
820
+ "declaration_internal",
821
+ "start_keyframes_rule",
822
+ "keyframes_blocks",
823
+ "keyframes_block",
824
+ "start_keyframes_block",
825
+ "declarations",
826
+ "keyframes_selectors",
827
+ "keyframes_selector",
828
+ "start_fontface_rule",
829
+ "start_selector",
830
+ "selectors",
831
+ "selector",
832
+ "simple_selector",
833
+ "combinator",
834
+ "element_name",
835
+ "hcap",
836
+ "simple_selectors",
837
+ "ident_with_namespace",
838
+ "hash",
839
+ "class",
840
+ "attrib",
841
+ "pseudo",
842
+ "any_number_of_idents",
843
+ "multiple_idents",
844
+ "one_or_more_semis",
845
+ "declaration",
846
+ "property",
847
+ "prio",
848
+ "operator",
849
+ "term",
850
+ "ratio",
851
+ "numeric",
852
+ "string",
853
+ "hexcolor",
854
+ "calc",
855
+ "uranges",
856
+ "calc_sum",
857
+ "calc_product",
858
+ "calc_value",
859
+ "unary_operator" ]
860
+
861
+ Racc_debug_parser = false
862
+
863
+ ##### State transition tables end #####
864
+
865
+ # reduce 0 omitted
866
+
867
+ module_eval(<<'.,.,', 'csspool.y', 26)
868
+ def _reduce_1(val, _values, result)
869
+ @handler.start_document
870
+ result
871
+ end
872
+ .,.,
873
+
874
+ module_eval(<<'.,.,', 'csspool.y', 28)
875
+ def _reduce_2(val, _values, result)
876
+ @handler.end_document
877
+ result
878
+ end
879
+ .,.,
880
+
881
+ # reduce 3 omitted
882
+
883
+ # reduce 4 omitted
884
+
885
+ # reduce 5 omitted
886
+
887
+ # reduce 6 omitted
888
+
889
+ # reduce 7 omitted
890
+
891
+ # reduce 8 omitted
892
+
893
+ # reduce 9 omitted
894
+
895
+ # reduce 10 omitted
896
+
897
+ module_eval(<<'.,.,', 'csspool.y', 41)
898
+ def _reduce_11(val, _values, result)
899
+ @handler.charset interpret_string(val[1]), {}
900
+ result
901
+ end
902
+ .,.,
903
+
904
+ module_eval(<<'.,.,', 'csspool.y', 45)
905
+ def _reduce_12(val, _values, result)
906
+ @handler.import_style val[2], val[1]
907
+
908
+ result
909
+ end
910
+ .,.,
911
+
912
+ module_eval(<<'.,.,', 'csspool.y', 48)
913
+ def _reduce_13(val, _values, result)
914
+ @handler.import_style [], val[1]
915
+
916
+ result
917
+ end
918
+ .,.,
919
+
920
+ # reduce 14 omitted
921
+
922
+ module_eval(<<'.,.,', 'csspool.y', 53)
923
+ def _reduce_15(val, _values, result)
924
+ result = Terms::String.new interpret_string val.first
925
+ result
926
+ end
927
+ .,.,
928
+
929
+ module_eval(<<'.,.,', 'csspool.y', 54)
930
+ def _reduce_16(val, _values, result)
931
+ result = Terms::URI.new interpret_uri val.first
932
+ result
933
+ end
934
+ .,.,
935
+
936
+ module_eval(<<'.,.,', 'csspool.y', 58)
937
+ def _reduce_17(val, _values, result)
938
+ @handler.namespace val[1], val[2]
939
+
940
+ result
941
+ end
942
+ .,.,
943
+
944
+ module_eval(<<'.,.,', 'csspool.y', 61)
945
+ def _reduce_18(val, _values, result)
946
+ @handler.namespace nil, val[1]
947
+
948
+ result
949
+ end
950
+ .,.,
951
+
952
+ module_eval(<<'.,.,', 'csspool.y', 66)
953
+ def _reduce_19(val, _values, result)
954
+ result = val[0] << MediaType.new(val[2])
955
+
956
+ result
957
+ end
958
+ .,.,
959
+
960
+ module_eval(<<'.,.,', 'csspool.y', 69)
961
+ def _reduce_20(val, _values, result)
962
+ result = [MediaType.new(val[0])]
963
+
964
+ result
965
+ end
966
+ .,.,
967
+
968
+ module_eval(<<'.,.,', 'csspool.y', 73)
969
+ def _reduce_21(val, _values, result)
970
+ result = MediaQueryList.new([ val[0] ])
971
+ result
972
+ end
973
+ .,.,
974
+
975
+ module_eval(<<'.,.,', 'csspool.y', 74)
976
+ def _reduce_22(val, _values, result)
977
+ result = val[0] << val[2]
978
+ result
979
+ end
980
+ .,.,
981
+
982
+ module_eval(<<'.,.,', 'csspool.y', 75)
983
+ def _reduce_23(val, _values, result)
984
+ result = MediaQueryList.new
985
+ result
986
+ end
987
+ .,.,
988
+
989
+ module_eval(<<'.,.,', 'csspool.y', 78)
990
+ def _reduce_24(val, _values, result)
991
+ result = MediaQuery.new(val[0], val[1], val[2])
992
+ result
993
+ end
994
+ .,.,
995
+
996
+ module_eval(<<'.,.,', 'csspool.y', 79)
997
+ def _reduce_25(val, _values, result)
998
+ result = MediaQuery.new(nil, val[0], val[1])
999
+ result
1000
+ end
1001
+ .,.,
1002
+
1003
+ module_eval(<<'.,.,', 'csspool.y', 82)
1004
+ def _reduce_26(val, _values, result)
1005
+ result = :only
1006
+ result
1007
+ end
1008
+ .,.,
1009
+
1010
+ module_eval(<<'.,.,', 'csspool.y', 83)
1011
+ def _reduce_27(val, _values, result)
1012
+ result = :not
1013
+ result
1014
+ end
1015
+ .,.,
1016
+
1017
+ module_eval(<<'.,.,', 'csspool.y', 84)
1018
+ def _reduce_28(val, _values, result)
1019
+ result = nil
1020
+ result
1021
+ end
1022
+ .,.,
1023
+
1024
+ module_eval(<<'.,.,', 'csspool.y', 87)
1025
+ def _reduce_29(val, _values, result)
1026
+ result = MediaType.new(val[0])
1027
+ result
1028
+ end
1029
+ .,.,
1030
+
1031
+ module_eval(<<'.,.,', 'csspool.y', 90)
1032
+ def _reduce_30(val, _values, result)
1033
+ result = MediaType.new(val[2])
1034
+ result
1035
+ end
1036
+ .,.,
1037
+
1038
+ module_eval(<<'.,.,', 'csspool.y', 91)
1039
+ def _reduce_31(val, _values, result)
1040
+ result = MediaFeature.new(val[2], val[6][0])
1041
+ result
1042
+ end
1043
+ .,.,
1044
+
1045
+ module_eval(<<'.,.,', 'csspool.y', 94)
1046
+ def _reduce_32(val, _values, result)
1047
+ result = val[0]
1048
+ result
1049
+ end
1050
+ .,.,
1051
+
1052
+ module_eval(<<'.,.,', 'csspool.y', 95)
1053
+ def _reduce_33(val, _values, result)
1054
+ result = nil
1055
+ result
1056
+ end
1057
+ .,.,
1058
+
1059
+ module_eval(<<'.,.,', 'csspool.y', 98)
1060
+ def _reduce_34(val, _values, result)
1061
+ result = val[0] << val[2]
1062
+ result
1063
+ end
1064
+ .,.,
1065
+
1066
+ module_eval(<<'.,.,', 'csspool.y', 99)
1067
+ def _reduce_35(val, _values, result)
1068
+ result = []
1069
+ result
1070
+ end
1071
+ .,.,
1072
+
1073
+ module_eval(<<'.,.,', 'csspool.y', 103)
1074
+ def _reduce_36(val, _values, result)
1075
+ unit = val.first.gsub(/[\s\d.]/, '')
1076
+ number = numeric(val.first)
1077
+ result = Terms::Resolution.new(number, unit)
1078
+
1079
+ result
1080
+ end
1081
+ .,.,
1082
+
1083
+ # reduce 37 omitted
1084
+
1085
+ # reduce 38 omitted
1086
+
1087
+ # reduce 39 omitted
1088
+
1089
+ # reduce 40 omitted
1090
+
1091
+ # reduce 41 omitted
1092
+
1093
+ # reduce 42 omitted
1094
+
1095
+ # reduce 43 omitted
1096
+
1097
+ # reduce 44 omitted
1098
+
1099
+ # reduce 45 omitted
1100
+
1101
+ # reduce 46 omitted
1102
+
1103
+ # reduce 47 omitted
1104
+
1105
+ # reduce 48 omitted
1106
+
1107
+ # reduce 49 omitted
1108
+
1109
+ module_eval(<<'.,.,', 'csspool.y', 128)
1110
+ def _reduce_50(val, _values, result)
1111
+ @handler.end_media val.first
1112
+ result
1113
+ end
1114
+ .,.,
1115
+
1116
+ module_eval(<<'.,.,', 'csspool.y', 132)
1117
+ def _reduce_51(val, _values, result)
1118
+ result = val[1]
1119
+ @handler.start_media result
1120
+
1121
+ result
1122
+ end
1123
+ .,.,
1124
+
1125
+ module_eval(<<'.,.,', 'csspool.y', 137)
1126
+ def _reduce_52(val, _values, result)
1127
+ @handler.end_document_query(before_pos(val), after_pos(val))
1128
+ result
1129
+ end
1130
+ .,.,
1131
+
1132
+ module_eval(<<'.,.,', 'csspool.y', 138)
1133
+ def _reduce_53(val, _values, result)
1134
+ @handler.end_document_query(before_pos(val), after_pos(val))
1135
+ result
1136
+ end
1137
+ .,.,
1138
+
1139
+ module_eval(<<'.,.,', 'csspool.y', 142)
1140
+ def _reduce_54(val, _values, result)
1141
+ @handler.start_document_query(val[1], after_pos(val))
1142
+
1143
+ result
1144
+ end
1145
+ .,.,
1146
+
1147
+ module_eval(<<'.,.,', 'csspool.y', 147)
1148
+ def _reduce_55(val, _values, result)
1149
+ @handler.node_start_pos = before_pos(val)
1150
+
1151
+ result
1152
+ end
1153
+ .,.,
1154
+
1155
+ module_eval(<<'.,.,', 'csspool.y', 152)
1156
+ def _reduce_56(val, _values, result)
1157
+ result = [val[0], val[2]].flatten
1158
+
1159
+ result
1160
+ end
1161
+ .,.,
1162
+
1163
+ module_eval(<<'.,.,', 'csspool.y', 155)
1164
+ def _reduce_57(val, _values, result)
1165
+ result = val
1166
+
1167
+ result
1168
+ end
1169
+ .,.,
1170
+
1171
+ # reduce 58 omitted
1172
+
1173
+ # reduce 59 omitted
1174
+
1175
+ # reduce 60 omitted
1176
+
1177
+ module_eval(<<'.,.,', 'csspool.y', 164)
1178
+ def _reduce_61(val, _values, result)
1179
+ @handler.end_supports
1180
+ result
1181
+ end
1182
+ .,.,
1183
+
1184
+ module_eval(<<'.,.,', 'csspool.y', 165)
1185
+ def _reduce_62(val, _values, result)
1186
+ @handler.end_supports
1187
+ result
1188
+ end
1189
+ .,.,
1190
+
1191
+ module_eval(<<'.,.,', 'csspool.y', 169)
1192
+ def _reduce_63(val, _values, result)
1193
+ @handler.start_supports val[1]
1194
+
1195
+ result
1196
+ end
1197
+ .,.,
1198
+
1199
+ module_eval(<<'.,.,', 'csspool.y', 173)
1200
+ def _reduce_64(val, _values, result)
1201
+ result = val.join('')
1202
+ result
1203
+ end
1204
+ .,.,
1205
+
1206
+ module_eval(<<'.,.,', 'csspool.y', 174)
1207
+ def _reduce_65(val, _values, result)
1208
+ result = val.join('')
1209
+ result
1210
+ end
1211
+ .,.,
1212
+
1213
+ module_eval(<<'.,.,', 'csspool.y', 175)
1214
+ def _reduce_66(val, _values, result)
1215
+ result = val.join('')
1216
+ result
1217
+ end
1218
+ .,.,
1219
+
1220
+ module_eval(<<'.,.,', 'csspool.y', 178)
1221
+ def _reduce_67(val, _values, result)
1222
+ result = val.join('')
1223
+ result
1224
+ end
1225
+ .,.,
1226
+
1227
+ module_eval(<<'.,.,', 'csspool.y', 179)
1228
+ def _reduce_68(val, _values, result)
1229
+ result = val.join('')
1230
+ result
1231
+ end
1232
+ .,.,
1233
+
1234
+ module_eval(<<'.,.,', 'csspool.y', 180)
1235
+ def _reduce_69(val, _values, result)
1236
+ result = val.join('')
1237
+ result
1238
+ end
1239
+ .,.,
1240
+
1241
+ module_eval(<<'.,.,', 'csspool.y', 183)
1242
+ def _reduce_70(val, _values, result)
1243
+ result = val.join('')
1244
+ result
1245
+ end
1246
+ .,.,
1247
+
1248
+ module_eval(<<'.,.,', 'csspool.y', 184)
1249
+ def _reduce_71(val, _values, result)
1250
+ result = val.join('')
1251
+ result
1252
+ end
1253
+ .,.,
1254
+
1255
+ module_eval(<<'.,.,', 'csspool.y', 187)
1256
+ def _reduce_72(val, _values, result)
1257
+ result = val.join('')
1258
+ result
1259
+ end
1260
+ .,.,
1261
+
1262
+ # reduce 73 omitted
1263
+
1264
+ # reduce 74 omitted
1265
+
1266
+ module_eval(<<'.,.,', 'csspool.y', 194)
1267
+ def _reduce_75(val, _values, result)
1268
+ result = val.join('')
1269
+ result
1270
+ end
1271
+ .,.,
1272
+
1273
+ module_eval(<<'.,.,', 'csspool.y', 195)
1274
+ def _reduce_76(val, _values, result)
1275
+ result = val.join('')
1276
+ result
1277
+ end
1278
+ .,.,
1279
+
1280
+ module_eval(<<'.,.,', 'csspool.y', 198)
1281
+ def _reduce_77(val, _values, result)
1282
+ result = val.join('')
1283
+ result
1284
+ end
1285
+ .,.,
1286
+
1287
+ module_eval(<<'.,.,', 'csspool.y', 199)
1288
+ def _reduce_78(val, _values, result)
1289
+ result = val.join('')
1290
+ result
1291
+ end
1292
+ .,.,
1293
+
1294
+ module_eval(<<'.,.,', 'csspool.y', 202)
1295
+ def _reduce_79(val, _values, result)
1296
+ result = val.join('')
1297
+ result
1298
+ end
1299
+ .,.,
1300
+
1301
+ module_eval(<<'.,.,', 'csspool.y', 203)
1302
+ def _reduce_80(val, _values, result)
1303
+ result = val.join('')
1304
+ result
1305
+ end
1306
+ .,.,
1307
+
1308
+ # reduce 81 omitted
1309
+
1310
+ # reduce 82 omitted
1311
+
1312
+ module_eval(<<'.,.,', 'csspool.y', 211)
1313
+ def _reduce_83(val, _values, result)
1314
+ @handler.start_keyframes_rule val[1]
1315
+
1316
+ result
1317
+ end
1318
+ .,.,
1319
+
1320
+ # reduce 84 omitted
1321
+
1322
+ # reduce 85 omitted
1323
+
1324
+ module_eval(<<'.,.,', 'csspool.y', 219)
1325
+ def _reduce_86(val, _values, result)
1326
+ @handler.end_keyframes_block
1327
+ result
1328
+ end
1329
+ .,.,
1330
+
1331
+ module_eval(<<'.,.,', 'csspool.y', 220)
1332
+ def _reduce_87(val, _values, result)
1333
+ @handler.end_keyframes_block
1334
+ result
1335
+ end
1336
+ .,.,
1337
+
1338
+ module_eval(<<'.,.,', 'csspool.y', 224)
1339
+ def _reduce_88(val, _values, result)
1340
+ @handler.start_keyframes_block val[0]
1341
+
1342
+ result
1343
+ end
1344
+ .,.,
1345
+
1346
+ # reduce 89 omitted
1347
+
1348
+ module_eval(<<'.,.,', 'csspool.y', 229)
1349
+ def _reduce_90(val, _values, result)
1350
+ result = val[0] + ', ' + val[2]
1351
+
1352
+ result
1353
+ end
1354
+ .,.,
1355
+
1356
+ # reduce 91 omitted
1357
+
1358
+ # reduce 92 omitted
1359
+
1360
+ module_eval(<<'.,.,', 'csspool.y', 235)
1361
+ def _reduce_93(val, _values, result)
1362
+ result = val[0].strip
1363
+ result
1364
+ end
1365
+ .,.,
1366
+
1367
+ module_eval(<<'.,.,', 'csspool.y', 238)
1368
+ def _reduce_94(val, _values, result)
1369
+ @handler.end_fontface_rule
1370
+ result
1371
+ end
1372
+ .,.,
1373
+
1374
+ module_eval(<<'.,.,', 'csspool.y', 239)
1375
+ def _reduce_95(val, _values, result)
1376
+ @handler.end_fontface_rule
1377
+ result
1378
+ end
1379
+ .,.,
1380
+
1381
+ module_eval(<<'.,.,', 'csspool.y', 243)
1382
+ def _reduce_96(val, _values, result)
1383
+ @handler.start_fontface_rule
1384
+
1385
+ result
1386
+ end
1387
+ .,.,
1388
+
1389
+ module_eval(<<'.,.,', 'csspool.y', 248)
1390
+ def _reduce_97(val, _values, result)
1391
+ @handler.end_selector val.first
1392
+
1393
+ result
1394
+ end
1395
+ .,.,
1396
+
1397
+ module_eval(<<'.,.,', 'csspool.y', 251)
1398
+ def _reduce_98(val, _values, result)
1399
+ @handler.end_selector val.first
1400
+
1401
+ result
1402
+ end
1403
+ .,.,
1404
+
1405
+ module_eval(<<'.,.,', 'csspool.y', 256)
1406
+ def _reduce_99(val, _values, result)
1407
+ start = @handler.start_selector([])
1408
+ @handler.end_selector(start)
1409
+
1410
+ result
1411
+ end
1412
+ .,.,
1413
+
1414
+ module_eval(<<'.,.,', 'csspool.y', 261)
1415
+ def _reduce_100(val, _values, result)
1416
+ result = val.last
1417
+ result
1418
+ end
1419
+ .,.,
1420
+
1421
+ module_eval(<<'.,.,', 'csspool.y', 263)
1422
+ def _reduce_101(val, _values, result)
1423
+ @handler.start_selector val.first
1424
+
1425
+ result
1426
+ end
1427
+ .,.,
1428
+
1429
+ module_eval(<<'.,.,', 'csspool.y', 269)
1430
+ def _reduce_102(val, _values, result)
1431
+ sel = Selector.new(val.first, {})
1432
+ result = [sel].concat(val[2])
1433
+
1434
+ result
1435
+ end
1436
+ .,.,
1437
+
1438
+ module_eval(<<'.,.,', 'csspool.y', 274)
1439
+ def _reduce_103(val, _values, result)
1440
+ result = [Selector.new(val.first, {})]
1441
+
1442
+ result
1443
+ end
1444
+ .,.,
1445
+
1446
+ module_eval(<<'.,.,', 'csspool.y', 280)
1447
+ def _reduce_104(val, _values, result)
1448
+ val.flatten!
1449
+ val[2].combinator = val.delete_at 1
1450
+ result = val
1451
+
1452
+ result
1453
+ end
1454
+ .,.,
1455
+
1456
+ # reduce 105 omitted
1457
+
1458
+ module_eval(<<'.,.,', 'csspool.y', 287)
1459
+ def _reduce_106(val, _values, result)
1460
+ result = :s
1461
+ result
1462
+ end
1463
+ .,.,
1464
+
1465
+ module_eval(<<'.,.,', 'csspool.y', 288)
1466
+ def _reduce_107(val, _values, result)
1467
+ result = :>
1468
+ result
1469
+ end
1470
+ .,.,
1471
+
1472
+ module_eval(<<'.,.,', 'csspool.y', 289)
1473
+ def _reduce_108(val, _values, result)
1474
+ result = :+
1475
+ result
1476
+ end
1477
+ .,.,
1478
+
1479
+ module_eval(<<'.,.,', 'csspool.y', 290)
1480
+ def _reduce_109(val, _values, result)
1481
+ result = :~
1482
+ result
1483
+ end
1484
+ .,.,
1485
+
1486
+ module_eval(<<'.,.,', 'csspool.y', 294)
1487
+ def _reduce_110(val, _values, result)
1488
+ selector = val.first
1489
+ selector.additional_selectors = val.last
1490
+ result = [selector]
1491
+
1492
+ result
1493
+ end
1494
+ .,.,
1495
+
1496
+ module_eval(<<'.,.,', 'csspool.y', 298)
1497
+ def _reduce_111(val, _values, result)
1498
+ result = val
1499
+ result
1500
+ end
1501
+ .,.,
1502
+
1503
+ module_eval(<<'.,.,', 'csspool.y', 301)
1504
+ def _reduce_112(val, _values, result)
1505
+ ss = Selectors::Simple.new nil, nil
1506
+ ss.additional_selectors = val.flatten
1507
+ result = [ss]
1508
+
1509
+ result
1510
+ end
1511
+ .,.,
1512
+
1513
+ module_eval(<<'.,.,', 'csspool.y', 307)
1514
+ def _reduce_113(val, _values, result)
1515
+ result = [val[0], val[2]].flatten
1516
+ result
1517
+ end
1518
+ .,.,
1519
+
1520
+ # reduce 114 omitted
1521
+
1522
+ module_eval(<<'.,.,', 'csspool.y', 311)
1523
+ def _reduce_115(val, _values, result)
1524
+ result = [interpret_identifier(val[0]), nil]
1525
+ result
1526
+ end
1527
+ .,.,
1528
+
1529
+ module_eval(<<'.,.,', 'csspool.y', 312)
1530
+ def _reduce_116(val, _values, result)
1531
+ result = [interpret_identifier(val[2]), interpret_identifier(val[0])]
1532
+ result
1533
+ end
1534
+ .,.,
1535
+
1536
+ module_eval(<<'.,.,', 'csspool.y', 313)
1537
+ def _reduce_117(val, _values, result)
1538
+ result = [interpret_identifier(val[1]), nil]
1539
+ result
1540
+ end
1541
+ .,.,
1542
+
1543
+ module_eval(<<'.,.,', 'csspool.y', 314)
1544
+ def _reduce_118(val, _values, result)
1545
+ result = [interpret_identifier(val[2]), '*']
1546
+ result
1547
+ end
1548
+ .,.,
1549
+
1550
+ module_eval(<<'.,.,', 'csspool.y', 317)
1551
+ def _reduce_119(val, _values, result)
1552
+ result = Selectors::Type.new val.first[0], nil, val.first[1]
1553
+ result
1554
+ end
1555
+ .,.,
1556
+
1557
+ module_eval(<<'.,.,', 'csspool.y', 318)
1558
+ def _reduce_120(val, _values, result)
1559
+ result = Selectors::Universal.new val.first
1560
+ result
1561
+ end
1562
+ .,.,
1563
+
1564
+ module_eval(<<'.,.,', 'csspool.y', 319)
1565
+ def _reduce_121(val, _values, result)
1566
+ result = Selectors::Universal.new val[1]
1567
+ result
1568
+ end
1569
+ .,.,
1570
+
1571
+ module_eval(<<'.,.,', 'csspool.y', 320)
1572
+ def _reduce_122(val, _values, result)
1573
+ result = Selectors::Universal.new val[2], nil, val[0]
1574
+ result
1575
+ end
1576
+ .,.,
1577
+
1578
+ module_eval(<<'.,.,', 'csspool.y', 321)
1579
+ def _reduce_123(val, _values, result)
1580
+ result = Selectors::Universal.new val[2], nil, interpret_identifier(val[0])
1581
+ result
1582
+ end
1583
+ .,.,
1584
+
1585
+ module_eval(<<'.,.,', 'csspool.y', 324)
1586
+ def _reduce_124(val, _values, result)
1587
+ result = val
1588
+ result
1589
+ end
1590
+ .,.,
1591
+
1592
+ module_eval(<<'.,.,', 'csspool.y', 325)
1593
+ def _reduce_125(val, _values, result)
1594
+ result = val
1595
+ result
1596
+ end
1597
+ .,.,
1598
+
1599
+ module_eval(<<'.,.,', 'csspool.y', 326)
1600
+ def _reduce_126(val, _values, result)
1601
+ result = val
1602
+ result
1603
+ end
1604
+ .,.,
1605
+
1606
+ module_eval(<<'.,.,', 'csspool.y', 327)
1607
+ def _reduce_127(val, _values, result)
1608
+ result = val
1609
+ result
1610
+ end
1611
+ .,.,
1612
+
1613
+ module_eval(<<'.,.,', 'csspool.y', 328)
1614
+ def _reduce_128(val, _values, result)
1615
+ result = val.flatten
1616
+ result
1617
+ end
1618
+ .,.,
1619
+
1620
+ module_eval(<<'.,.,', 'csspool.y', 329)
1621
+ def _reduce_129(val, _values, result)
1622
+ result = val.flatten
1623
+ result
1624
+ end
1625
+ .,.,
1626
+
1627
+ module_eval(<<'.,.,', 'csspool.y', 330)
1628
+ def _reduce_130(val, _values, result)
1629
+ result = val.flatten
1630
+ result
1631
+ end
1632
+ .,.,
1633
+
1634
+ module_eval(<<'.,.,', 'csspool.y', 331)
1635
+ def _reduce_131(val, _values, result)
1636
+ result = val.flatten
1637
+ result
1638
+ end
1639
+ .,.,
1640
+
1641
+ module_eval(<<'.,.,', 'csspool.y', 335)
1642
+ def _reduce_132(val, _values, result)
1643
+ result = Selectors::Id.new interpret_identifier val.first.sub(/^#/, '')
1644
+
1645
+ result
1646
+ end
1647
+ .,.,
1648
+
1649
+ module_eval(<<'.,.,', 'csspool.y', 339)
1650
+ def _reduce_133(val, _values, result)
1651
+ result = Selectors::Class.new interpret_identifier val.last
1652
+
1653
+ result
1654
+ end
1655
+ .,.,
1656
+
1657
+ module_eval(<<'.,.,', 'csspool.y', 344)
1658
+ def _reduce_134(val, _values, result)
1659
+ result = Selectors::Attribute.new(
1660
+ val[1][0],
1661
+ interpret_identifier(val[3]),
1662
+ Selectors::Attribute::EQUALS,
1663
+ val[1][1]
1664
+ )
1665
+
1666
+ result
1667
+ end
1668
+ .,.,
1669
+
1670
+ module_eval(<<'.,.,', 'csspool.y', 352)
1671
+ def _reduce_135(val, _values, result)
1672
+ result = Selectors::Attribute.new(
1673
+ val[1][0],
1674
+ interpret_string(val[3]),
1675
+ Selectors::Attribute::EQUALS,
1676
+ val[1][1]
1677
+ )
1678
+
1679
+ result
1680
+ end
1681
+ .,.,
1682
+
1683
+ module_eval(<<'.,.,', 'csspool.y', 360)
1684
+ def _reduce_136(val, _values, result)
1685
+ result = Selectors::Attribute.new(
1686
+ val[1][0],
1687
+ interpret_string(val[3]),
1688
+ Selectors::Attribute::INCLUDES,
1689
+ val[1][1]
1690
+ )
1691
+
1692
+ result
1693
+ end
1694
+ .,.,
1695
+
1696
+ module_eval(<<'.,.,', 'csspool.y', 368)
1697
+ def _reduce_137(val, _values, result)
1698
+ result = Selectors::Attribute.new(
1699
+ val[1][0],
1700
+ interpret_identifier(val[3]),
1701
+ Selectors::Attribute::INCLUDES,
1702
+ val[1][1]
1703
+ )
1704
+
1705
+ result
1706
+ end
1707
+ .,.,
1708
+
1709
+ module_eval(<<'.,.,', 'csspool.y', 376)
1710
+ def _reduce_138(val, _values, result)
1711
+ result = Selectors::Attribute.new(
1712
+ val[1][0],
1713
+ interpret_identifier(val[3]),
1714
+ Selectors::Attribute::DASHMATCH,
1715
+ val[1][1]
1716
+ )
1717
+
1718
+ result
1719
+ end
1720
+ .,.,
1721
+
1722
+ module_eval(<<'.,.,', 'csspool.y', 384)
1723
+ def _reduce_139(val, _values, result)
1724
+ result = Selectors::Attribute.new(
1725
+ val[1][0],
1726
+ interpret_string(val[3]),
1727
+ Selectors::Attribute::DASHMATCH,
1728
+ val[1][1]
1729
+ )
1730
+
1731
+ result
1732
+ end
1733
+ .,.,
1734
+
1735
+ module_eval(<<'.,.,', 'csspool.y', 392)
1736
+ def _reduce_140(val, _values, result)
1737
+ result = Selectors::Attribute.new(
1738
+ val[1][0],
1739
+ interpret_identifier(val[3]),
1740
+ Selectors::Attribute::PREFIXMATCH,
1741
+ val[1][1]
1742
+ )
1743
+
1744
+ result
1745
+ end
1746
+ .,.,
1747
+
1748
+ module_eval(<<'.,.,', 'csspool.y', 400)
1749
+ def _reduce_141(val, _values, result)
1750
+ result = Selectors::Attribute.new(
1751
+ val[1][0],
1752
+ interpret_string(val[3]),
1753
+ Selectors::Attribute::PREFIXMATCH,
1754
+ val[1][1]
1755
+ )
1756
+
1757
+ result
1758
+ end
1759
+ .,.,
1760
+
1761
+ module_eval(<<'.,.,', 'csspool.y', 408)
1762
+ def _reduce_142(val, _values, result)
1763
+ result = Selectors::Attribute.new(
1764
+ val[1][0],
1765
+ interpret_identifier(val[3]),
1766
+ Selectors::Attribute::SUFFIXMATCH,
1767
+ val[1][1]
1768
+ )
1769
+
1770
+ result
1771
+ end
1772
+ .,.,
1773
+
1774
+ module_eval(<<'.,.,', 'csspool.y', 416)
1775
+ def _reduce_143(val, _values, result)
1776
+ result = Selectors::Attribute.new(
1777
+ val[1][0],
1778
+ interpret_string(val[3]),
1779
+ Selectors::Attribute::SUFFIXMATCH,
1780
+ val[1][1]
1781
+ )
1782
+
1783
+ result
1784
+ end
1785
+ .,.,
1786
+
1787
+ module_eval(<<'.,.,', 'csspool.y', 424)
1788
+ def _reduce_144(val, _values, result)
1789
+ result = Selectors::Attribute.new(
1790
+ val[1][0],
1791
+ interpret_identifier(val[3]),
1792
+ Selectors::Attribute::SUBSTRINGMATCH,
1793
+ val[1][1]
1794
+ )
1795
+
1796
+ result
1797
+ end
1798
+ .,.,
1799
+
1800
+ module_eval(<<'.,.,', 'csspool.y', 432)
1801
+ def _reduce_145(val, _values, result)
1802
+ result = Selectors::Attribute.new(
1803
+ val[1][0],
1804
+ interpret_string(val[3]),
1805
+ Selectors::Attribute::SUBSTRINGMATCH,
1806
+ val[1][1]
1807
+ )
1808
+
1809
+ result
1810
+ end
1811
+ .,.,
1812
+
1813
+ module_eval(<<'.,.,', 'csspool.y', 440)
1814
+ def _reduce_146(val, _values, result)
1815
+ result = Selectors::Attribute.new(
1816
+ val[1][0],
1817
+ nil,
1818
+ Selectors::Attribute::SET,
1819
+ val[1][1]
1820
+ )
1821
+
1822
+ result
1823
+ end
1824
+ .,.,
1825
+
1826
+ module_eval(<<'.,.,', 'csspool.y', 450)
1827
+ def _reduce_147(val, _values, result)
1828
+ result = Selectors::pseudo interpret_identifier(val[1])
1829
+
1830
+ result
1831
+ end
1832
+ .,.,
1833
+
1834
+ module_eval(<<'.,.,', 'csspool.y', 453)
1835
+ def _reduce_148(val, _values, result)
1836
+ result = Selectors::PseudoElement.new(
1837
+ interpret_identifier(val[2])
1838
+ )
1839
+
1840
+ result
1841
+ end
1842
+ .,.,
1843
+
1844
+ module_eval(<<'.,.,', 'csspool.y', 458)
1845
+ def _reduce_149(val, _values, result)
1846
+ result = Selectors::PseudoClass.new(
1847
+ interpret_identifier(val[1].sub(/\($/, '')),
1848
+ ''
1849
+ )
1850
+
1851
+ result
1852
+ end
1853
+ .,.,
1854
+
1855
+ module_eval(<<'.,.,', 'csspool.y', 464)
1856
+ def _reduce_150(val, _values, result)
1857
+ result = Selectors::PseudoClass.new(
1858
+ interpret_identifier(val[1].sub(/\($/, '')),
1859
+ interpret_identifier(val[2])
1860
+ )
1861
+
1862
+ result
1863
+ end
1864
+ .,.,
1865
+
1866
+ module_eval(<<'.,.,', 'csspool.y', 470)
1867
+ def _reduce_151(val, _values, result)
1868
+ result = Selectors::PseudoClass.new(
1869
+ 'not',
1870
+ val[2].first.to_s
1871
+ )
1872
+
1873
+ result
1874
+ end
1875
+ .,.,
1876
+
1877
+ module_eval(<<'.,.,', 'csspool.y', 476)
1878
+ def _reduce_152(val, _values, result)
1879
+ result = Selectors::PseudoClass.new(
1880
+ interpret_identifier(val[1].sub(/\(.*/, '')),
1881
+ interpret_identifier(val[1].sub(/.*\(/, '').sub(/\).*/, ''))
1882
+ )
1883
+
1884
+ result
1885
+ end
1886
+ .,.,
1887
+
1888
+ module_eval(<<'.,.,', 'csspool.y', 482)
1889
+ def _reduce_153(val, _values, result)
1890
+ result = Selectors::PseudoClass.new(
1891
+ val[1].split('(').first.strip,
1892
+ val[2].join(', ')
1893
+ )
1894
+
1895
+ result
1896
+ end
1897
+ .,.,
1898
+
1899
+ module_eval(<<'.,.,', 'csspool.y', 488)
1900
+ def _reduce_154(val, _values, result)
1901
+ result = Selectors::PseudoElement.new(
1902
+ interpret_identifier(val[1].sub(/\($/, ''))
1903
+ )
1904
+
1905
+ result
1906
+ end
1907
+ .,.,
1908
+
1909
+ module_eval(<<'.,.,', 'csspool.y', 493)
1910
+ def _reduce_155(val, _values, result)
1911
+ result = Selectors::PseudoElement.new(
1912
+ interpret_identifier(val[2].sub(/\($/, ''))
1913
+ )
1914
+
1915
+ result
1916
+ end
1917
+ .,.,
1918
+
1919
+ # reduce 156 omitted
1920
+
1921
+ # reduce 157 omitted
1922
+
1923
+ # reduce 158 omitted
1924
+
1925
+ # reduce 159 omitted
1926
+
1927
+ # reduce 160 omitted
1928
+
1929
+ # reduce 161 omitted
1930
+
1931
+ # reduce 162 omitted
1932
+
1933
+ # reduce 163 omitted
1934
+
1935
+ # reduce 164 omitted
1936
+
1937
+ # reduce 165 omitted
1938
+
1939
+ # reduce 166 omitted
1940
+
1941
+ module_eval(<<'.,.,', 'csspool.y', 519)
1942
+ def _reduce_167(val, _values, result)
1943
+ @handler.property val.first
1944
+ result
1945
+ end
1946
+ .,.,
1947
+
1948
+ module_eval(<<'.,.,', 'csspool.y', 523)
1949
+ def _reduce_168(val, _values, result)
1950
+ result = Declaration.new(val.first, val[2], val[3])
1951
+ result
1952
+ end
1953
+ .,.,
1954
+
1955
+ module_eval(<<'.,.,', 'csspool.y', 525)
1956
+ def _reduce_169(val, _values, result)
1957
+ result = Declaration.new(val.first, val[3], val[4])
1958
+ result
1959
+ end
1960
+ .,.,
1961
+
1962
+ module_eval(<<'.,.,', 'csspool.y', 527)
1963
+ def _reduce_170(val, _values, result)
1964
+ result = Declaration.new(val.first, val[3], val[4])
1965
+ result
1966
+ end
1967
+ .,.,
1968
+
1969
+ module_eval(<<'.,.,', 'csspool.y', 529)
1970
+ def _reduce_171(val, _values, result)
1971
+ result = Declaration.new(val.first, val[4], val[5])
1972
+ result
1973
+ end
1974
+ .,.,
1975
+
1976
+ module_eval(<<'.,.,', 'csspool.y', 532)
1977
+ def _reduce_172(val, _values, result)
1978
+ result = true
1979
+ result
1980
+ end
1981
+ .,.,
1982
+
1983
+ module_eval(<<'.,.,', 'csspool.y', 533)
1984
+ def _reduce_173(val, _values, result)
1985
+ result = false
1986
+ result
1987
+ end
1988
+ .,.,
1989
+
1990
+ module_eval(<<'.,.,', 'csspool.y', 536)
1991
+ def _reduce_174(val, _values, result)
1992
+ result = interpret_identifier val[0]
1993
+ result
1994
+ end
1995
+ .,.,
1996
+
1997
+ module_eval(<<'.,.,', 'csspool.y', 537)
1998
+ def _reduce_175(val, _values, result)
1999
+ result = interpret_identifier val.join
2000
+ result
2001
+ end
2002
+ .,.,
2003
+
2004
+ module_eval(<<'.,.,', 'csspool.y', 538)
2005
+ def _reduce_176(val, _values, result)
2006
+ result = interpret_identifier val[0]
2007
+ result
2008
+ end
2009
+ .,.,
2010
+
2011
+ # reduce 177 omitted
2012
+
2013
+ # reduce 178 omitted
2014
+
2015
+ # reduce 179 omitted
2016
+
2017
+ module_eval(<<'.,.,', 'csspool.y', 547)
2018
+ def _reduce_180(val, _values, result)
2019
+ result = [val.first, val.last].flatten
2020
+ val.last.first.operator = val[1]
2021
+
2022
+ result
2023
+ end
2024
+ .,.,
2025
+
2026
+ module_eval(<<'.,.,', 'csspool.y', 550)
2027
+ def _reduce_181(val, _values, result)
2028
+ result = val.flatten
2029
+ result
2030
+ end
2031
+ .,.,
2032
+
2033
+ module_eval(<<'.,.,', 'csspool.y', 551)
2034
+ def _reduce_182(val, _values, result)
2035
+ result = val
2036
+ result
2037
+ end
2038
+ .,.,
2039
+
2040
+ # reduce 183 omitted
2041
+
2042
+ # reduce 184 omitted
2043
+
2044
+ # reduce 185 omitted
2045
+
2046
+ # reduce 186 omitted
2047
+
2048
+ # reduce 187 omitted
2049
+
2050
+ # reduce 188 omitted
2051
+
2052
+ # reduce 189 omitted
2053
+
2054
+ # reduce 190 omitted
2055
+
2056
+ # reduce 191 omitted
2057
+
2058
+ # reduce 192 omitted
2059
+
2060
+ # reduce 193 omitted
2061
+
2062
+ module_eval(<<'.,.,', 'csspool.y', 567)
2063
+ def _reduce_194(val, _values, result)
2064
+ result = val.first
2065
+ result
2066
+ end
2067
+ .,.,
2068
+
2069
+ module_eval(<<'.,.,', 'csspool.y', 569)
2070
+ def _reduce_195(val, _values, result)
2071
+ name = interpret_identifier val.first.sub(/\($/, '')
2072
+ if name == 'rgb'
2073
+ result = Terms::Rgb.new(*val[1])
2074
+ else
2075
+ result = Terms::Function.new name, val[1]
2076
+ end
2077
+
2078
+ result
2079
+ end
2080
+ .,.,
2081
+
2082
+ module_eval(<<'.,.,', 'csspool.y', 577)
2083
+ def _reduce_196(val, _values, result)
2084
+ name = interpret_identifier val.first.sub(/\($/, '')
2085
+ result = Terms::Function.new name
2086
+
2087
+ result
2088
+ end
2089
+ .,.,
2090
+
2091
+ module_eval(<<'.,.,', 'csspool.y', 582)
2092
+ def _reduce_197(val, _values, result)
2093
+ result = val.first
2094
+ result
2095
+ end
2096
+ .,.,
2097
+
2098
+ module_eval(<<'.,.,', 'csspool.y', 584)
2099
+ def _reduce_198(val, _values, result)
2100
+ parts = val.first.split('(')
2101
+ name = interpret_identifier parts.first
2102
+ result = Terms::Function.new(name, [Terms::String.new(interpret_string_no_quote(parts.last))])
2103
+
2104
+ result
2105
+ end
2106
+ .,.,
2107
+
2108
+ # reduce 199 omitted
2109
+
2110
+ # reduce 200 omitted
2111
+
2112
+ module_eval(<<'.,.,', 'csspool.y', 595)
2113
+ def _reduce_201(val, _values, result)
2114
+ result = Terms::Math.new(val.first.split('(').first, val[1])
2115
+
2116
+ result
2117
+ end
2118
+ .,.,
2119
+
2120
+ # reduce 202 omitted
2121
+
2122
+ module_eval(<<'.,.,', 'csspool.y', 601)
2123
+ def _reduce_203(val, _values, result)
2124
+ val.insert(1, ' '); result = val.join('')
2125
+ result
2126
+ end
2127
+ .,.,
2128
+
2129
+ module_eval(<<'.,.,', 'csspool.y', 602)
2130
+ def _reduce_204(val, _values, result)
2131
+ val.insert(1, ' '); result = val.join('')
2132
+ result
2133
+ end
2134
+ .,.,
2135
+
2136
+ # reduce 205 omitted
2137
+
2138
+ module_eval(<<'.,.,', 'csspool.y', 606)
2139
+ def _reduce_206(val, _values, result)
2140
+ result = val.join('')
2141
+ result
2142
+ end
2143
+ .,.,
2144
+
2145
+ module_eval(<<'.,.,', 'csspool.y', 607)
2146
+ def _reduce_207(val, _values, result)
2147
+ result = val.join('')
2148
+ result
2149
+ end
2150
+ .,.,
2151
+
2152
+ module_eval(<<'.,.,', 'csspool.y', 610)
2153
+ def _reduce_208(val, _values, result)
2154
+ result = val.join('')
2155
+ result
2156
+ end
2157
+ .,.,
2158
+
2159
+ module_eval(<<'.,.,', 'csspool.y', 611)
2160
+ def _reduce_209(val, _values, result)
2161
+ result = val.join('')
2162
+ result
2163
+ end
2164
+ .,.,
2165
+
2166
+ module_eval(<<'.,.,', 'csspool.y', 612)
2167
+ def _reduce_210(val, _values, result)
2168
+ result = val.join('')
2169
+ result
2170
+ end
2171
+ .,.,
2172
+
2173
+ module_eval(<<'.,.,', 'csspool.y', 615)
2174
+ def _reduce_211(val, _values, result)
2175
+ result = val.first
2176
+ result
2177
+ end
2178
+ .,.,
2179
+
2180
+ module_eval(<<'.,.,', 'csspool.y', 616)
2181
+ def _reduce_212(val, _values, result)
2182
+ result = Terms::Hash.new val.first.sub(/^#/, '')
2183
+ result
2184
+ end
2185
+ .,.,
2186
+
2187
+ module_eval(<<'.,.,', 'csspool.y', 619)
2188
+ def _reduce_213(val, _values, result)
2189
+ result = val.first
2190
+ result
2191
+ end
2192
+ .,.,
2193
+
2194
+ module_eval(<<'.,.,', 'csspool.y', 620)
2195
+ def _reduce_214(val, _values, result)
2196
+ result = Terms::URI.new interpret_uri val.first
2197
+ result
2198
+ end
2199
+ .,.,
2200
+
2201
+ module_eval(<<'.,.,', 'csspool.y', 623)
2202
+ def _reduce_215(val, _values, result)
2203
+ result = val.first
2204
+ result
2205
+ end
2206
+ .,.,
2207
+
2208
+ module_eval(<<'.,.,', 'csspool.y', 624)
2209
+ def _reduce_216(val, _values, result)
2210
+ result = Terms::String.new interpret_string val.first
2211
+ result
2212
+ end
2213
+ .,.,
2214
+
2215
+ module_eval(<<'.,.,', 'csspool.y', 628)
2216
+ def _reduce_217(val, _values, result)
2217
+ result = val[1]
2218
+ val[1].unary_operator = val.first
2219
+
2220
+ result
2221
+ end
2222
+ .,.,
2223
+
2224
+ module_eval(<<'.,.,', 'csspool.y', 632)
2225
+ def _reduce_218(val, _values, result)
2226
+ result = Terms::Number.new numeric val.first
2227
+
2228
+ result
2229
+ end
2230
+ .,.,
2231
+
2232
+ module_eval(<<'.,.,', 'csspool.y', 635)
2233
+ def _reduce_219(val, _values, result)
2234
+ result = Terms::Number.new numeric(val.first), nil, '%'
2235
+
2236
+ result
2237
+ end
2238
+ .,.,
2239
+
2240
+ module_eval(<<'.,.,', 'csspool.y', 638)
2241
+ def _reduce_220(val, _values, result)
2242
+ unit = val.first.gsub(/[\s\d.]/, '')
2243
+ result = Terms::Number.new numeric(val.first), nil, unit
2244
+
2245
+ result
2246
+ end
2247
+ .,.,
2248
+
2249
+ module_eval(<<'.,.,', 'csspool.y', 642)
2250
+ def _reduce_221(val, _values, result)
2251
+ unit = val.first.gsub(/[\s\d.]/, '')
2252
+ result = Terms::Number.new numeric(val.first), nil, unit
2253
+
2254
+ result
2255
+ end
2256
+ .,.,
2257
+
2258
+ module_eval(<<'.,.,', 'csspool.y', 646)
2259
+ def _reduce_222(val, _values, result)
2260
+ unit = val.first.gsub(/[\s\d.]/, '')
2261
+ result = Terms::Number.new numeric(val.first), nil, unit
2262
+
2263
+ result
2264
+ end
2265
+ .,.,
2266
+
2267
+ module_eval(<<'.,.,', 'csspool.y', 650)
2268
+ def _reduce_223(val, _values, result)
2269
+ unit = val.first.gsub(/[\s\d.]/, '')
2270
+ result = Terms::Number.new numeric(val.first), nil, unit
2271
+
2272
+ result
2273
+ end
2274
+ .,.,
2275
+
2276
+ module_eval(<<'.,.,', 'csspool.y', 656)
2277
+ def _reduce_224(val, _values, result)
2278
+ result = Terms::Ratio.new(val[0], val[1])
2279
+
2280
+ result
2281
+ end
2282
+ .,.,
2283
+
2284
+ module_eval(<<'.,.,', 'csspool.y', 660)
2285
+ def _reduce_225(val, _values, result)
2286
+ result = :minus
2287
+ result
2288
+ end
2289
+ .,.,
2290
+
2291
+ module_eval(<<'.,.,', 'csspool.y', 661)
2292
+ def _reduce_226(val, _values, result)
2293
+ result = :plus
2294
+ result
2295
+ end
2296
+ .,.,
2297
+
2298
+ module_eval(<<'.,.,', 'csspool.y', 664)
2299
+ def _reduce_227(val, _values, result)
2300
+ result = val.first
2301
+ result
2302
+ end
2303
+ .,.,
2304
+
2305
+ module_eval(<<'.,.,', 'csspool.y', 665)
2306
+ def _reduce_228(val, _values, result)
2307
+ result = Terms::Ident.new interpret_identifier val.first
2308
+ result
2309
+ end
2310
+ .,.,
2311
+
2312
+ def _reduce_none(val, _values, result)
2313
+ val[0]
2314
+ end
2315
+
2316
+ end # class Parser
2317
+ end # module CSS
2318
+ end # module CSSPool