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