racc 1.4.14 → 1.4.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) 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/info.rb +2 -2
  7. data/test/assets/bibtex.y +141 -0
  8. data/test/assets/cadenza.y +170 -0
  9. data/test/assets/cast.y +926 -0
  10. data/test/assets/csspool.y +729 -0
  11. data/test/assets/edtf.y +583 -0
  12. data/test/assets/huia.y +318 -0
  13. data/test/assets/journey.y +47 -0
  14. data/test/assets/liquor.y +313 -0
  15. data/test/assets/machete.y +423 -0
  16. data/test/assets/macruby.y +2197 -0
  17. data/test/assets/mediacloth.y +599 -0
  18. data/test/assets/mof.y +649 -0
  19. data/test/assets/namae.y +302 -0
  20. data/test/assets/nasl.y +626 -0
  21. data/test/assets/nokogiri-css.y +255 -0
  22. data/test/assets/opal.y +1807 -0
  23. data/test/assets/php_serialization.y +98 -0
  24. data/test/assets/rdblockparser.y +576 -0
  25. data/test/assets/rdinlineparser.y +561 -0
  26. data/test/assets/riml.y +665 -0
  27. data/test/assets/ruby18.y +1943 -0
  28. data/test/assets/ruby19.y +2174 -0
  29. data/test/assets/ruby20.y +2350 -0
  30. data/test/assets/ruby21.y +2359 -0
  31. data/test/assets/ruby22.y +2381 -0
  32. data/test/assets/tp_plus.y +622 -0
  33. data/test/assets/twowaysql.y +278 -0
  34. data/test/helper.rb +31 -15
  35. data/test/regress/bibtex +474 -0
  36. data/test/regress/cadenza +796 -0
  37. data/test/regress/cast +3425 -0
  38. data/test/regress/csspool +2318 -0
  39. data/test/regress/edtf +1794 -0
  40. data/test/regress/huia +1392 -0
  41. data/test/regress/journey +222 -0
  42. data/test/regress/liquor +885 -0
  43. data/test/regress/machete +833 -0
  44. data/test/regress/mediacloth +1463 -0
  45. data/test/regress/mof +1368 -0
  46. data/test/regress/namae +634 -0
  47. data/test/regress/nasl +2058 -0
  48. data/test/regress/nokogiri-css +836 -0
  49. data/test/regress/opal +6429 -0
  50. data/test/regress/php_serialization +336 -0
  51. data/test/regress/rdblockparser +1061 -0
  52. data/test/regress/rdinlineparser +1243 -0
  53. data/test/regress/riml +3297 -0
  54. data/test/regress/ruby18 +6351 -0
  55. data/test/regress/ruby22 +7456 -0
  56. data/test/regress/tp_plus +1933 -0
  57. data/test/regress/twowaysql +556 -0
  58. data/test/test_racc_command.rb +177 -0
  59. metadata +75 -20
@@ -0,0 +1,1368 @@
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
+
9
+
10
+ # parser.rb - generated by racc
11
+
12
+ require 'strscan'
13
+ require 'rubygems'
14
+ require 'cim'
15
+ require File.join(File.dirname(__FILE__), 'result')
16
+ require File.join(File.dirname(__FILE__), 'scanner')
17
+ require File.join(File.dirname(__FILE__), 'helper')
18
+
19
+ module MOF
20
+ class Parser < Racc::Parser
21
+
22
+ module_eval(<<'...end mof.y/module_eval...', 'mof.y', 571)
23
+
24
+ #
25
+ # Initialize MOF::Parser
26
+ # MOF::Parser.new options = {}
27
+ #
28
+ # options -> Hash of options
29
+ # :debug -> boolean
30
+ # :includes -> array of include dirs
31
+ # :style -> :cim or :wmi
32
+ #
33
+ def initialize options = {}
34
+ @yydebug = options[:debug]
35
+ @includes = options[:includes] || []
36
+ @quiet = options[:quiet]
37
+ @style = options[:style] || :cim # default to style CIM v2.2 syntax
38
+
39
+ @lineno = 1
40
+ @file = nil
41
+ @iconv = nil
42
+ @eol = "\n"
43
+ @fname = nil
44
+ @fstack = []
45
+ @in_comment = false
46
+ @seen_files = []
47
+ @qualifiers = {}
48
+ end
49
+
50
+ #
51
+ # Make options hash from argv
52
+ #
53
+ # returns [ files, options ]
54
+ #
55
+
56
+ def self.argv_handler name, argv
57
+ files = []
58
+ options = { :namespace => "" }
59
+ while argv.size > 0
60
+ case opt = argv.shift
61
+ when "-h"
62
+ $stderr.puts "Ruby MOF compiler"
63
+ $stderr.puts "#{name} [-h] [-d] [-I <dir>] [<moffiles>]"
64
+ $stderr.puts "Compiles <moffile>"
65
+ $stderr.puts "\t-d debug"
66
+ $stderr.puts "\t-h this help"
67
+ $stderr.puts "\t-I <dir> include dir"
68
+ $stderr.puts "\t-f force"
69
+ $stderr.puts "\t-n <namespace>"
70
+ $stderr.puts "\t-o <output>"
71
+ $stderr.puts "\t-s <style> syntax style (wmi,cim)"
72
+ $stderr.puts "\t-q quiet"
73
+ $stderr.puts "\t<moffiles> file(s) to read (else use $stdin)"
74
+ exit 0
75
+ when "-f" then options[:force] = true
76
+ when "-s" then options[:style] = argv.shift.to_sym
77
+ when "-d" then options[:debug] = true
78
+ when "-q" then options[:quiet] = true
79
+ when "-I"
80
+ options[:includes] ||= []
81
+ dirname = argv.shift
82
+ unless File.directory?(dirname)
83
+ files << dirname
84
+ dirname = File.dirname(dirname)
85
+ end
86
+ options[:includes] << Pathname.new(dirname)
87
+ when "-n" then options[:namespace] = argv.shift
88
+ when "-o" then options[:output] = argv.shift
89
+ when /^-.+/
90
+ $stderr.puts "Undefined option #{opt}"
91
+ else
92
+ files << opt
93
+ end
94
+ end
95
+ [ files, options ]
96
+ end
97
+
98
+ include Helper
99
+ include Scanner
100
+
101
+ ...end mof.y/module_eval...
102
+ ##### State transition tables begin ###
103
+
104
+ racc_action_table = [
105
+ 13, 172, 163, 197, 174, 200, 63, 17, 145, 146,
106
+ 147, 62, 121, 172, 11, 173, 174, 173, 148, 11,
107
+ 144, 149, 150, 151, 152, 18, 163, 173, 207, 153,
108
+ 106, 107, 108, 109, 110, 112, 111, 199, 15, 16,
109
+ 174, 55, 57, 68, 69, 71, 72, 52, 53, 54,
110
+ 56, 163, 7, 40, -59, 42, 42, 7, 10, 10,
111
+ 115, 102, 114, 121, 10, 55, 57, 68, 69, 71,
112
+ 72, 52, 53, 54, 56, 51, -77, 209, 190, 42,
113
+ 211, 10, 10, 189, 135, 102, 51, 170, 135, 10,
114
+ 55, 57, 68, 69, 71, 72, 52, 53, 54, 56,
115
+ 164, 218, 10, 21, 42, 22, 23, 10, 95, 96,
116
+ 102, 35, 191, 192, 55, 57, 25, 220, 24, 221,
117
+ 52, 53, 54, 56, 226, 55, 57, 35, 180, 181,
118
+ 228, 52, 53, 54, 56, 93, 79, 80, 81, 82,
119
+ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
120
+ -25, 93, 79, 80, 81, 82, 83, 84, 85, 86,
121
+ 87, 88, 89, 90, 91, 92, 29, 31, 229, 231,
122
+ 55, 57, 68, 69, 71, 72, 52, 53, 54, 56,
123
+ 145, 146, 147, 172, 10, 121, 174, 10, 135, 27,
124
+ 148, 28, 144, 149, 150, 151, 152, 173, 33, 35,
125
+ 36, 153, 55, 57, 68, 69, 71, 72, 52, 53,
126
+ 54, 56, 106, 107, 108, 109, 110, 112, 111, 10,
127
+ 55, 57, 68, 69, 71, 72, 52, 53, 54, 56,
128
+ 21, 44, 22, 23, 33, 33, 21, 10, 22, 23,
129
+ 60, 35, 65, 25, 78, 24, 97, 100, 102, 25,
130
+ 60, 24, 93, 79, 80, 81, 82, 83, 84, 85,
131
+ 86, 87, 88, 89, 90, 91, 92, 106, 107, 108,
132
+ 109, 110, 112, 111, 113, 97, 18, 118, 119, 121,
133
+ 124, 35, 126, 127, 129, 130, 131, 133, 135, 10,
134
+ 141, 154, 35, 184, 185, 194 ]
135
+
136
+ racc_action_check = [
137
+ 1, 140, 211, 186, 140, 188, 37, 8, 131, 131,
138
+ 131, 37, 195, 194, 0, 140, 194, 186, 131, 1,
139
+ 131, 131, 131, 131, 131, 8, 189, 194, 196, 131,
140
+ 192, 192, 192, 192, 192, 192, 192, 187, 7, 7,
141
+ 187, 211, 211, 211, 211, 211, 211, 211, 211, 211,
142
+ 211, 135, 0, 20, 197, 211, 20, 1, 211, 0,
143
+ 75, 211, 75, 198, 1, 189, 189, 189, 189, 189,
144
+ 189, 189, 189, 189, 189, 33, 207, 201, 177, 189,
145
+ 205, 207, 189, 177, 206, 189, 96, 138, 208, 138,
146
+ 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
147
+ 137, 210, 137, 10, 135, 10, 10, 135, 47, 47,
148
+ 135, 169, 178, 178, 33, 33, 10, 212, 10, 213,
149
+ 33, 33, 33, 33, 217, 96, 96, 216, 142, 142,
150
+ 221, 96, 96, 96, 96, 169, 169, 169, 169, 169,
151
+ 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
152
+ 42, 216, 216, 216, 216, 216, 216, 216, 216, 216,
153
+ 216, 216, 216, 216, 216, 216, 15, 15, 222, 223,
154
+ 42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
155
+ 181, 181, 181, 218, 229, 230, 218, 42, 233, 12,
156
+ 181, 13, 181, 181, 181, 181, 181, 218, 16, 17,
157
+ 18, 181, 40, 40, 40, 40, 40, 40, 40, 40,
158
+ 40, 40, 141, 141, 141, 141, 141, 141, 141, 40,
159
+ 115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
160
+ 11, 26, 11, 11, 29, 30, 63, 115, 63, 63,
161
+ 34, 36, 38, 11, 43, 11, 49, 58, 60, 63,
162
+ 61, 63, 44, 44, 44, 44, 44, 44, 44, 44,
163
+ 44, 44, 44, 44, 44, 44, 44, 65, 65, 65,
164
+ 65, 65, 65, 65, 66, 70, 74, 77, 78, 94,
165
+ 98, 100, 102, 103, 116, 118, 119, 121, 122, 127,
166
+ 130, 132, 161, 162, 164, 183 ]
167
+
168
+ racc_action_pointer = [
169
+ -5, 0, nil, nil, nil, nil, nil, 32, -2, nil,
170
+ 95, 222, 126, 191, nil, 159, 140, 191, 169, nil,
171
+ -5, nil, nil, nil, nil, nil, 165, nil, nil, 176,
172
+ 177, nil, nil, 67, 212, nil, 233, -54, 176, nil,
173
+ 155, nil, 123, 184, 220, nil, nil, 49, nil, 198,
174
+ nil, nil, nil, nil, nil, nil, nil, nil, 181, nil,
175
+ 181, 222, nil, 228, nil, 255, 215, nil, nil, nil,
176
+ 227, nil, nil, nil, 249, 0, nil, 217, 258, nil,
177
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
178
+ nil, nil, nil, nil, 215, nil, 78, nil, 219, nil,
179
+ 273, nil, 274, 222, nil, nil, nil, nil, nil, nil,
180
+ nil, nil, nil, nil, nil, 173, 221, nil, 259, 228,
181
+ nil, 240, 220, nil, nil, nil, nil, 225, nil, nil,
182
+ 232, -1, 226, nil, nil, 43, nil, 38, 25, nil,
183
+ -7, 200, 69, nil, nil, nil, nil, nil, nil, nil,
184
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
185
+ nil, 284, 227, nil, 231, nil, nil, nil, nil, 103,
186
+ nil, nil, nil, nil, nil, nil, nil, 15, 53, nil,
187
+ nil, 171, nil, 226, nil, nil, -5, 29, -24, 18,
188
+ nil, nil, 18, nil, 5, -52, -30, -4, -1, nil,
189
+ nil, 14, nil, nil, nil, 12, 16, 17, 20, nil,
190
+ 41, -6, 54, 60, nil, nil, 119, 61, 175, nil,
191
+ nil, 67, 108, 161, nil, nil, nil, nil, nil, 120,
192
+ 121, nil, nil, 120, nil, nil ]
193
+
194
+ racc_action_default = [
195
+ -1, -25, -2, -4, -5, -6, -7, -161, -161, -26,
196
+ -161, -161, -161, -161, -3, -161, -12, -161, -161, -28,
197
+ -33, -133, -134, -135, -136, -137, -161, -155, 236, -12,
198
+ -12, -11, -10, -161, -44, -48, -161, -161, -31, -34,
199
+ -25, -36, -100, -161, -161, -8, -9, -161, -14, -16,
200
+ -17, -18, -110, -111, -112, -113, -114, -115, -46, -45,
201
+ -161, -44, -27, -161, -30, -161, -161, -103, -104, -105,
202
+ -106, -107, -108, -109, -161, -161, -101, -131, -161, -60,
203
+ -61, -62, -63, -64, -65, -66, -67, -68, -69, -70,
204
+ -71, -72, -73, -74, -86, -13, -161, -116, -161, -47,
205
+ -161, -49, -161, -161, -29, -32, -37, -38, -39, -40,
206
+ -41, -42, -43, -35, -99, -25, -161, -132, -161, -161,
207
+ -87, -91, -93, -15, -20, -51, -50, -25, -102, -130,
208
+ -161, -161, -161, -92, -94, -25, -138, -25, -25, -157,
209
+ -161, -161, -161, -140, -142, -143, -144, -145, -146, -147,
210
+ -148, -149, -150, -151, -90, -95, -96, -97, -98, -117,
211
+ -118, -161, -161, -122, -161, -21, -22, -23, -24, -161,
212
+ -156, -158, -55, -56, -58, -128, -129, -161, -161, -153,
213
+ -139, -161, -119, -161, -121, -19, -161, -161, -75, -25,
214
+ -160, -152, -161, -141, -161, -86, -161, -55, -86, -57,
215
+ -76, -161, -154, -123, -125, -161, -93, -25, -93, -159,
216
+ -124, -25, -161, -161, -78, -80, -161, -161, -161, -127,
217
+ -52, -161, -79, -161, -83, -84, -53, -126, -54, -25,
218
+ -86, -85, -81, -88, -82, -89 ]
219
+
220
+ racc_goto_table = [
221
+ 8, 8, 34, 94, 122, 105, 136, 155, 50, 66,
222
+ 49, 76, 48, 19, 143, 187, 58, 204, 215, 32,
223
+ 139, 61, 12, 12, 2, 14, 30, 38, 39, 26,
224
+ 41, 171, 45, 46, 99, 101, 37, 195, 168, 167,
225
+ 232, 227, 166, 103, 198, 196, 213, 214, 165, 222,
226
+ 223, 230, 234, 235, 132, 137, 75, 1, 182, 203,
227
+ 98, 201, 225, 210, 193, 177, 104, 43, 77, 116,
228
+ 117, 50, 142, 49, 47, 123, 178, 138, 64, nil,
229
+ nil, 179, nil, 219, 128, 125, nil, nil, nil, nil,
230
+ 212, nil, 217, nil, nil, nil, nil, nil, nil, nil,
231
+ nil, nil, nil, nil, nil, 206, nil, nil, 208, nil,
232
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
233
+ nil, nil, nil, nil, nil, nil, nil, 140, 186, nil,
234
+ nil, nil, 202, nil, nil, nil, nil, 169, 140, nil,
235
+ 233, nil, nil, nil, nil, nil, 183, nil, nil, nil,
236
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
237
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
238
+ nil, nil, nil, nil, nil, 224, nil, nil, nil, nil,
239
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
240
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
241
+ nil, nil, nil, nil, nil, nil, nil, 216, nil, nil,
242
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
243
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 216 ]
244
+
245
+ racc_goto_check = [
246
+ 13, 13, 14, 35, 37, 28, 38, 52, 12, 30,
247
+ 11, 30, 10, 23, 69, 39, 15, 61, 44, 7,
248
+ 72, 14, 55, 55, 2, 2, 8, 26, 29, 25,
249
+ 31, 72, 7, 7, 33, 34, 24, 36, 21, 20,
250
+ 44, 61, 19, 15, 40, 41, 42, 43, 18, 45,
251
+ 46, 47, 48, 50, 51, 17, 54, 1, 58, 60,
252
+ 16, 52, 39, 62, 69, 63, 23, 64, 65, 66,
253
+ 67, 12, 68, 11, 9, 10, 70, 71, 27, nil,
254
+ nil, 28, nil, 52, 30, 14, nil, nil, nil, nil,
255
+ 38, nil, 38, nil, nil, nil, nil, nil, nil, nil,
256
+ nil, nil, nil, nil, nil, 37, nil, nil, 37, nil,
257
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
258
+ nil, nil, nil, nil, nil, nil, nil, 13, 35, nil,
259
+ nil, nil, 28, nil, nil, nil, nil, 13, 13, nil,
260
+ 37, nil, nil, nil, nil, nil, 14, nil, nil, nil,
261
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
262
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
263
+ nil, nil, nil, nil, nil, 35, nil, nil, nil, nil,
264
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
265
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
266
+ nil, nil, nil, nil, nil, nil, nil, 13, nil, nil,
267
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
268
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, 13 ]
269
+
270
+ racc_goto_pointer = [
271
+ nil, 57, 24, nil, nil, nil, nil, 3, 11, 41,
272
+ -21, -23, -25, 0, -15, -18, 2, -69, -89, -95,
273
+ -98, -99, nil, 3, 17, 18, 7, 40, -60, 8,
274
+ -31, 10, nil, -24, -25, -41, -149, -90, -116, -154,
275
+ -143, -141, -161, -160, -189, -166, -166, -172, -181, nil,
276
+ -180, -67, -128, nil, 14, 22, nil, nil, -103, nil,
277
+ -135, -177, -141, -75, 41, 25, -8, -7, -59, -117,
278
+ -65, -50, -107 ]
279
+
280
+ racc_goto_default = [
281
+ nil, nil, nil, 3, 4, 5, 6, nil, nil, nil,
282
+ nil, 70, 67, 74, 188, nil, nil, nil, nil, nil,
283
+ nil, nil, 9, nil, nil, 20, nil, nil, nil, nil,
284
+ 156, 157, 59, nil, 160, nil, 175, nil, nil, nil,
285
+ 176, nil, nil, nil, nil, nil, nil, nil, nil, 120,
286
+ 134, nil, nil, 158, nil, 73, 159, 161, nil, 162,
287
+ nil, nil, nil, 205, nil, nil, nil, nil, nil, nil,
288
+ nil, nil, nil ]
289
+
290
+ racc_reduce_table = [
291
+ 0, 0, :racc_error,
292
+ 0, 71, :_reduce_1,
293
+ 1, 71, :_reduce_2,
294
+ 2, 71, :_reduce_3,
295
+ 1, 72, :_reduce_none,
296
+ 1, 72, :_reduce_5,
297
+ 1, 72, :_reduce_6,
298
+ 1, 72, :_reduce_7,
299
+ 4, 73, :_reduce_8,
300
+ 4, 73, :_reduce_none,
301
+ 3, 73, :_reduce_10,
302
+ 1, 78, :_reduce_none,
303
+ 0, 77, :_reduce_12,
304
+ 3, 77, :_reduce_13,
305
+ 1, 79, :_reduce_none,
306
+ 3, 79, :_reduce_none,
307
+ 1, 80, :_reduce_none,
308
+ 1, 80, :_reduce_17,
309
+ 1, 80, :_reduce_none,
310
+ 9, 74, :_reduce_19,
311
+ 0, 87, :_reduce_20,
312
+ 2, 87, :_reduce_21,
313
+ 1, 88, :_reduce_none,
314
+ 1, 88, :_reduce_none,
315
+ 1, 88, :_reduce_none,
316
+ 0, 83, :_reduce_none,
317
+ 1, 83, :_reduce_26,
318
+ 4, 92, :_reduce_27,
319
+ 0, 94, :_reduce_28,
320
+ 3, 94, :_reduce_29,
321
+ 3, 93, :_reduce_30,
322
+ 0, 97, :_reduce_none,
323
+ 2, 97, :_reduce_32,
324
+ 0, 96, :_reduce_none,
325
+ 1, 96, :_reduce_none,
326
+ 3, 99, :_reduce_35,
327
+ 1, 99, :_reduce_none,
328
+ 1, 98, :_reduce_none,
329
+ 1, 98, :_reduce_none,
330
+ 1, 98, :_reduce_none,
331
+ 1, 98, :_reduce_none,
332
+ 1, 98, :_reduce_none,
333
+ 1, 98, :_reduce_none,
334
+ 1, 98, :_reduce_43,
335
+ 0, 85, :_reduce_none,
336
+ 1, 85, :_reduce_none,
337
+ 0, 86, :_reduce_none,
338
+ 1, 86, :_reduce_none,
339
+ 1, 84, :_reduce_48,
340
+ 2, 102, :_reduce_49,
341
+ 2, 104, :_reduce_50,
342
+ 2, 103, :_reduce_51,
343
+ 6, 89, :_reduce_52,
344
+ 6, 91, :_reduce_53,
345
+ 7, 90, :_reduce_54,
346
+ 1, 106, :_reduce_none,
347
+ 1, 106, :_reduce_56,
348
+ 1, 110, :_reduce_none,
349
+ 1, 110, :_reduce_58,
350
+ 1, 111, :_reduce_none,
351
+ 1, 105, :_reduce_none,
352
+ 1, 105, :_reduce_none,
353
+ 1, 105, :_reduce_none,
354
+ 1, 105, :_reduce_none,
355
+ 1, 105, :_reduce_none,
356
+ 1, 105, :_reduce_none,
357
+ 1, 105, :_reduce_none,
358
+ 1, 105, :_reduce_none,
359
+ 1, 105, :_reduce_none,
360
+ 1, 105, :_reduce_none,
361
+ 1, 105, :_reduce_none,
362
+ 1, 105, :_reduce_none,
363
+ 1, 105, :_reduce_none,
364
+ 1, 105, :_reduce_none,
365
+ 1, 105, :_reduce_74,
366
+ 1, 109, :_reduce_75,
367
+ 2, 109, :_reduce_76,
368
+ 0, 112, :_reduce_none,
369
+ 1, 112, :_reduce_none,
370
+ 2, 113, :_reduce_79,
371
+ 0, 115, :_reduce_80,
372
+ 3, 115, :_reduce_81,
373
+ 5, 114, :_reduce_82,
374
+ 1, 116, :_reduce_none,
375
+ 1, 116, :_reduce_none,
376
+ 1, 117, :_reduce_none,
377
+ 0, 107, :_reduce_none,
378
+ 1, 107, :_reduce_none,
379
+ 0, 118, :_reduce_none,
380
+ 1, 118, :_reduce_89,
381
+ 3, 119, :_reduce_90,
382
+ 0, 121, :_reduce_91,
383
+ 1, 121, :_reduce_none,
384
+ 0, 108, :_reduce_none,
385
+ 1, 108, :_reduce_none,
386
+ 2, 120, :_reduce_95,
387
+ 1, 122, :_reduce_none,
388
+ 1, 122, :_reduce_none,
389
+ 1, 122, :_reduce_none,
390
+ 3, 101, :_reduce_99,
391
+ 0, 124, :_reduce_none,
392
+ 1, 124, :_reduce_101,
393
+ 3, 124, :_reduce_102,
394
+ 1, 100, :_reduce_none,
395
+ 1, 100, :_reduce_none,
396
+ 1, 100, :_reduce_none,
397
+ 1, 100, :_reduce_none,
398
+ 1, 100, :_reduce_none,
399
+ 1, 100, :_reduce_none,
400
+ 1, 100, :_reduce_109,
401
+ 1, 82, :_reduce_none,
402
+ 1, 82, :_reduce_none,
403
+ 1, 82, :_reduce_none,
404
+ 1, 82, :_reduce_none,
405
+ 1, 82, :_reduce_none,
406
+ 1, 81, :_reduce_none,
407
+ 2, 81, :_reduce_116,
408
+ 1, 123, :_reduce_none,
409
+ 1, 123, :_reduce_none,
410
+ 2, 126, :_reduce_none,
411
+ 0, 127, :_reduce_none,
412
+ 2, 127, :_reduce_none,
413
+ 1, 129, :_reduce_none,
414
+ 3, 128, :_reduce_none,
415
+ 2, 130, :_reduce_none,
416
+ 0, 132, :_reduce_none,
417
+ 3, 132, :_reduce_none,
418
+ 3, 131, :_reduce_none,
419
+ 1, 133, :_reduce_none,
420
+ 1, 133, :_reduce_none,
421
+ 6, 75, :_reduce_130,
422
+ 0, 136, :_reduce_none,
423
+ 1, 136, :_reduce_none,
424
+ 1, 95, :_reduce_none,
425
+ 1, 95, :_reduce_none,
426
+ 1, 95, :_reduce_none,
427
+ 1, 95, :_reduce_none,
428
+ 1, 95, :_reduce_none,
429
+ 4, 134, :_reduce_138,
430
+ 5, 135, :_reduce_139,
431
+ 1, 138, :_reduce_140,
432
+ 3, 138, :_reduce_141,
433
+ 1, 139, :_reduce_none,
434
+ 1, 139, :_reduce_none,
435
+ 1, 139, :_reduce_none,
436
+ 1, 139, :_reduce_none,
437
+ 1, 139, :_reduce_none,
438
+ 1, 139, :_reduce_none,
439
+ 1, 139, :_reduce_none,
440
+ 1, 139, :_reduce_none,
441
+ 1, 139, :_reduce_none,
442
+ 1, 139, :_reduce_none,
443
+ 5, 137, :_reduce_152,
444
+ 1, 140, :_reduce_153,
445
+ 3, 140, :_reduce_154,
446
+ 2, 76, :_reduce_none,
447
+ 8, 125, :_reduce_none,
448
+ 1, 141, :_reduce_none,
449
+ 2, 141, :_reduce_none,
450
+ 5, 142, :_reduce_none,
451
+ 3, 142, :_reduce_160 ]
452
+
453
+ racc_reduce_n = 161
454
+
455
+ racc_shift_n = 236
456
+
457
+ racc_token_table = {
458
+ false => 0,
459
+ :error => 1,
460
+ "*" => 2,
461
+ "/" => 3,
462
+ "+" => 4,
463
+ "-" => 5,
464
+ :PRAGMA => 6,
465
+ :INCLUDE => 7,
466
+ :IDENTIFIER => 8,
467
+ :CLASS => 9,
468
+ :ASSOCIATION => 10,
469
+ :INDICATION => 11,
470
+ :AMENDED => 12,
471
+ :ENABLEOVERRIDE => 13,
472
+ :DISABLEOVERRIDE => 14,
473
+ :RESTRICTED => 15,
474
+ :TOSUBCLASS => 16,
475
+ :TOINSTANCE => 17,
476
+ :TRANSLATABLE => 18,
477
+ :QUALIFIER => 19,
478
+ :SCOPE => 20,
479
+ :SCHEMA => 21,
480
+ :PROPERTY => 22,
481
+ :REFERENCE => 23,
482
+ :METHOD => 24,
483
+ :PARAMETER => 25,
484
+ :FLAVOR => 26,
485
+ :INSTANCE => 27,
486
+ :AS => 28,
487
+ :REF => 29,
488
+ :ANY => 30,
489
+ :OF => 31,
490
+ :DT_VOID => 32,
491
+ :DT_UINT8 => 33,
492
+ :DT_SINT8 => 34,
493
+ :DT_UINT16 => 35,
494
+ :DT_SINT16 => 36,
495
+ :DT_UINT32 => 37,
496
+ :DT_SINT32 => 38,
497
+ :DT_UINT64 => 39,
498
+ :DT_SINT64 => 40,
499
+ :DT_REAL32 => 41,
500
+ :DT_REAL64 => 42,
501
+ :DT_CHAR16 => 43,
502
+ :DT_STR => 44,
503
+ :DT_BOOLEAN => 45,
504
+ :DT_DATETIME => 46,
505
+ :positiveDecimalValue => 47,
506
+ :stringValue => 48,
507
+ :realValue => 49,
508
+ :charValue => 50,
509
+ :booleanValue => 51,
510
+ :nullValue => 52,
511
+ :binaryValue => 53,
512
+ :octalValue => 54,
513
+ :decimalValue => 55,
514
+ :hexValue => 56,
515
+ "#" => 57,
516
+ "(" => 58,
517
+ ")" => 59,
518
+ "," => 60,
519
+ "{" => 61,
520
+ "}" => 62,
521
+ ";" => 63,
522
+ "[" => 64,
523
+ "]" => 65,
524
+ ":" => 66,
525
+ "$" => 67,
526
+ "=" => 68,
527
+ "." => 69 }
528
+
529
+ racc_nt_base = 70
530
+
531
+ racc_use_result_var = true
532
+
533
+ Racc_arg = [
534
+ racc_action_table,
535
+ racc_action_check,
536
+ racc_action_default,
537
+ racc_action_pointer,
538
+ racc_goto_table,
539
+ racc_goto_check,
540
+ racc_goto_default,
541
+ racc_goto_pointer,
542
+ racc_nt_base,
543
+ racc_reduce_table,
544
+ racc_token_table,
545
+ racc_shift_n,
546
+ racc_reduce_n,
547
+ racc_use_result_var ]
548
+
549
+ Racc_token_to_s_table = [
550
+ "$end",
551
+ "error",
552
+ "\"*\"",
553
+ "\"/\"",
554
+ "\"+\"",
555
+ "\"-\"",
556
+ "PRAGMA",
557
+ "INCLUDE",
558
+ "IDENTIFIER",
559
+ "CLASS",
560
+ "ASSOCIATION",
561
+ "INDICATION",
562
+ "AMENDED",
563
+ "ENABLEOVERRIDE",
564
+ "DISABLEOVERRIDE",
565
+ "RESTRICTED",
566
+ "TOSUBCLASS",
567
+ "TOINSTANCE",
568
+ "TRANSLATABLE",
569
+ "QUALIFIER",
570
+ "SCOPE",
571
+ "SCHEMA",
572
+ "PROPERTY",
573
+ "REFERENCE",
574
+ "METHOD",
575
+ "PARAMETER",
576
+ "FLAVOR",
577
+ "INSTANCE",
578
+ "AS",
579
+ "REF",
580
+ "ANY",
581
+ "OF",
582
+ "DT_VOID",
583
+ "DT_UINT8",
584
+ "DT_SINT8",
585
+ "DT_UINT16",
586
+ "DT_SINT16",
587
+ "DT_UINT32",
588
+ "DT_SINT32",
589
+ "DT_UINT64",
590
+ "DT_SINT64",
591
+ "DT_REAL32",
592
+ "DT_REAL64",
593
+ "DT_CHAR16",
594
+ "DT_STR",
595
+ "DT_BOOLEAN",
596
+ "DT_DATETIME",
597
+ "positiveDecimalValue",
598
+ "stringValue",
599
+ "realValue",
600
+ "charValue",
601
+ "booleanValue",
602
+ "nullValue",
603
+ "binaryValue",
604
+ "octalValue",
605
+ "decimalValue",
606
+ "hexValue",
607
+ "\"#\"",
608
+ "\"(\"",
609
+ "\")\"",
610
+ "\",\"",
611
+ "\"{\"",
612
+ "\"}\"",
613
+ "\";\"",
614
+ "\"[\"",
615
+ "\"]\"",
616
+ "\":\"",
617
+ "\"$\"",
618
+ "\"=\"",
619
+ "\".\"",
620
+ "$start",
621
+ "mofSpecification",
622
+ "mofProduction",
623
+ "compilerDirective",
624
+ "classDeclaration",
625
+ "qualifierDeclaration",
626
+ "instanceDeclaration",
627
+ "pragmaParameters_opt",
628
+ "pragmaName",
629
+ "pragmaParameterValues",
630
+ "pragmaParameterValue",
631
+ "string",
632
+ "integerValue",
633
+ "qualifierList_opt",
634
+ "className",
635
+ "alias_opt",
636
+ "superClass_opt",
637
+ "classFeatures",
638
+ "classFeature",
639
+ "propertyDeclaration",
640
+ "methodDeclaration",
641
+ "referenceDeclaration",
642
+ "qualifierList",
643
+ "qualifier",
644
+ "qualifiers",
645
+ "qualifierName",
646
+ "qualifierParameter_opt",
647
+ "flavor_opt",
648
+ "flavor",
649
+ "qualifierParameter",
650
+ "constantValue",
651
+ "arrayInitializer",
652
+ "alias",
653
+ "superClass",
654
+ "aliasIdentifier",
655
+ "dataType",
656
+ "propertyName",
657
+ "array_opt",
658
+ "defaultValue_opt",
659
+ "objectRef",
660
+ "referenceName",
661
+ "methodName",
662
+ "parameterList_opt",
663
+ "parameterList",
664
+ "parameter",
665
+ "parameters",
666
+ "typespec",
667
+ "parameterName",
668
+ "parameterValue_opt",
669
+ "array",
670
+ "defaultValue",
671
+ "positiveDecimalValue_opt",
672
+ "initializer",
673
+ "referenceInitializer",
674
+ "constantValues",
675
+ "instance",
676
+ "objectHandle",
677
+ "namespace_opt",
678
+ "modelPath",
679
+ "namespaceHandle",
680
+ "keyValuePairList",
681
+ "keyValuePair",
682
+ "keyValuePairs",
683
+ "keyname",
684
+ "qualifierType",
685
+ "scope",
686
+ "defaultFlavor_opt",
687
+ "defaultFlavor",
688
+ "metaElements",
689
+ "metaElement",
690
+ "flavors",
691
+ "valueInitializers",
692
+ "valueInitializer" ]
693
+
694
+ Racc_debug_parser = false
695
+
696
+ ##### State transition tables end #####
697
+
698
+ # reduce 0 omitted
699
+
700
+ module_eval(<<'.,.,', 'mof.y', 41)
701
+ def _reduce_1(val, _values, result)
702
+ result = Hash.new
703
+ result
704
+ end
705
+ .,.,
706
+
707
+ module_eval(<<'.,.,', 'mof.y', 43)
708
+ def _reduce_2(val, _values, result)
709
+ result = { @name => @result }
710
+ result
711
+ end
712
+ .,.,
713
+
714
+ module_eval(<<'.,.,', 'mof.y', 45)
715
+ def _reduce_3(val, _values, result)
716
+ result = val[0]
717
+ result[@name] = @result
718
+
719
+ result
720
+ end
721
+ .,.,
722
+
723
+ # reduce 4 omitted
724
+
725
+ module_eval(<<'.,.,', 'mof.y', 53)
726
+ def _reduce_5(val, _values, result)
727
+ #puts "Class '#{val[0].name}'"
728
+ @result.classes << val[0]
729
+
730
+ result
731
+ end
732
+ .,.,
733
+
734
+ module_eval(<<'.,.,', 'mof.y', 57)
735
+ def _reduce_6(val, _values, result)
736
+ @result.qualifiers << val[0]
737
+ @qualifiers[val[0].name.downcase] = val[0]
738
+
739
+ result
740
+ end
741
+ .,.,
742
+
743
+ module_eval(<<'.,.,', 'mof.y', 61)
744
+ def _reduce_7(val, _values, result)
745
+ @result.instances << val[0]
746
+ result
747
+ end
748
+ .,.,
749
+
750
+ module_eval(<<'.,.,', 'mof.y', 71)
751
+ def _reduce_8(val, _values, result)
752
+ raise MOF::Helper::Error.new(@name,@lineno,@line,"Missing filename after '#pragma include'") unless val[3]
753
+ open val[3], :pragma
754
+
755
+ result
756
+ end
757
+ .,.,
758
+
759
+ # reduce 9 omitted
760
+
761
+ module_eval(<<'.,.,', 'mof.y', 76)
762
+ def _reduce_10(val, _values, result)
763
+ raise StyleError.new(@name,@lineno,@line,"Use '#pragma include' instead of '#include'") unless @style == :wmi
764
+ raise MOF::Helper::Error.new(@name,@lineno,@line,"Missing filename after '#include'") unless val[2]
765
+ open val[2], :pragma
766
+
767
+ result
768
+ end
769
+ .,.,
770
+
771
+ # reduce 11 omitted
772
+
773
+ module_eval(<<'.,.,', 'mof.y', 88)
774
+ def _reduce_12(val, _values, result)
775
+ raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi
776
+ result
777
+ end
778
+ .,.,
779
+
780
+ module_eval(<<'.,.,', 'mof.y', 90)
781
+ def _reduce_13(val, _values, result)
782
+ result = val[1]
783
+ result
784
+ end
785
+ .,.,
786
+
787
+ # reduce 14 omitted
788
+
789
+ # reduce 15 omitted
790
+
791
+ # reduce 16 omitted
792
+
793
+ module_eval(<<'.,.,', 'mof.y', 101)
794
+ def _reduce_17(val, _values, result)
795
+ raise StyleError.new(@name,@lineno,@line,"#pragma parameter missing") unless @style == :wmi
796
+ result
797
+ end
798
+ .,.,
799
+
800
+ # reduce 18 omitted
801
+
802
+ module_eval(<<'.,.,', 'mof.y', 112)
803
+ def _reduce_19(val, _values, result)
804
+ qualifiers = val[0]
805
+ features = val[6]
806
+ # FIXME: features must not include references
807
+ result = CIM::Class.new(val[2],qualifiers,val[3],val[4],features)
808
+
809
+ result
810
+ end
811
+ .,.,
812
+
813
+ module_eval(<<'.,.,', 'mof.y', 121)
814
+ def _reduce_20(val, _values, result)
815
+ result = []
816
+ result
817
+ end
818
+ .,.,
819
+
820
+ module_eval(<<'.,.,', 'mof.y', 123)
821
+ def _reduce_21(val, _values, result)
822
+ result = val[0] << val[1]
823
+ result
824
+ end
825
+ .,.,
826
+
827
+ # reduce 22 omitted
828
+
829
+ # reduce 23 omitted
830
+
831
+ # reduce 24 omitted
832
+
833
+ # reduce 25 omitted
834
+
835
+ module_eval(<<'.,.,', 'mof.y', 136)
836
+ def _reduce_26(val, _values, result)
837
+ result = CIM::QualifierSet.new val[0]
838
+ result
839
+ end
840
+ .,.,
841
+
842
+ module_eval(<<'.,.,', 'mof.y', 141)
843
+ def _reduce_27(val, _values, result)
844
+ result = val[2]
845
+ result.unshift val[1] if val[1]
846
+ result
847
+ end
848
+ .,.,
849
+
850
+ module_eval(<<'.,.,', 'mof.y', 147)
851
+ def _reduce_28(val, _values, result)
852
+ result = []
853
+ result
854
+ end
855
+ .,.,
856
+
857
+ module_eval(<<'.,.,', 'mof.y', 149)
858
+ def _reduce_29(val, _values, result)
859
+ result = val[0]
860
+ result << val[2] if val[2]
861
+
862
+ result
863
+ end
864
+ .,.,
865
+
866
+ module_eval(<<'.,.,', 'mof.y', 156)
867
+ def _reduce_30(val, _values, result)
868
+ # Get qualifier decl
869
+ qualifier = case val[0]
870
+ when CIM::Qualifier then val[0].definition
871
+ when CIM::QualifierDeclaration then val[0]
872
+ when String then @qualifiers[val[0].downcase]
873
+ else
874
+ nil
875
+ end
876
+ raise MOF::Helper::Error.new(@name,@lineno,@line,"'#{val[0]}' is not a valid qualifier") unless qualifier
877
+ value = val[1]
878
+ raise MOF::Helper::Error.new(@name,@lineno,@line,"#{value.inspect} does not match qualifier type '#{qualifier.type}'") unless qualifier.type.matches?(value)||@style == :wmi
879
+ # Don't propagate a boolean 'false'
880
+ if qualifier.type == :boolean && value == false
881
+ result = nil
882
+ else
883
+ result = CIM::Qualifier.new(qualifier,value,val[2])
884
+ end
885
+
886
+ result
887
+ end
888
+ .,.,
889
+
890
+ # reduce 31 omitted
891
+
892
+ module_eval(<<'.,.,', 'mof.y', 179)
893
+ def _reduce_32(val, _values, result)
894
+ result = CIM::QualifierFlavors.new val[1]
895
+ result
896
+ end
897
+ .,.,
898
+
899
+ # reduce 33 omitted
900
+
901
+ # reduce 34 omitted
902
+
903
+ module_eval(<<'.,.,', 'mof.y', 189)
904
+ def _reduce_35(val, _values, result)
905
+ result = val[1]
906
+ result
907
+ end
908
+ .,.,
909
+
910
+ # reduce 36 omitted
911
+
912
+ # reduce 37 omitted
913
+
914
+ # reduce 38 omitted
915
+
916
+ # reduce 39 omitted
917
+
918
+ # reduce 40 omitted
919
+
920
+ # reduce 41 omitted
921
+
922
+ # reduce 42 omitted
923
+
924
+ module_eval(<<'.,.,', 'mof.y', 196)
925
+ def _reduce_43(val, _values, result)
926
+ case val[0].to_sym
927
+ when :amended, :toinstance
928
+ raise StyleError.new(@name,@lineno,@line,"'#{val[0]}' is not a valid flavor") unless @style == :wmi
929
+ end
930
+
931
+ result
932
+ end
933
+ .,.,
934
+
935
+ # reduce 44 omitted
936
+
937
+ # reduce 45 omitted
938
+
939
+ # reduce 46 omitted
940
+
941
+ # reduce 47 omitted
942
+
943
+ module_eval(<<'.,.,', 'mof.y', 215)
944
+ def _reduce_48(val, _values, result)
945
+ raise ParseError.new("Class name must be prefixed by '<schema>_'") unless val[0].include?("_") || @style == :wmi
946
+ result
947
+ end
948
+ .,.,
949
+
950
+ module_eval(<<'.,.,', 'mof.y', 220)
951
+ def _reduce_49(val, _values, result)
952
+ result = val[1]
953
+ result
954
+ end
955
+ .,.,
956
+
957
+ module_eval(<<'.,.,', 'mof.y', 225)
958
+ def _reduce_50(val, _values, result)
959
+ result = val[1]
960
+ result
961
+ end
962
+ .,.,
963
+
964
+ module_eval(<<'.,.,', 'mof.y', 230)
965
+ def _reduce_51(val, _values, result)
966
+ result = val[1]
967
+ result
968
+ end
969
+ .,.,
970
+
971
+ module_eval(<<'.,.,', 'mof.y', 236)
972
+ def _reduce_52(val, _values, result)
973
+ if val[3]
974
+ type = CIM::Array.new val[3],val[1]
975
+ else
976
+ type = val[1]
977
+ end
978
+ result = CIM::Property.new(type,val[2],val[0],val[4])
979
+
980
+ result
981
+ end
982
+ .,.,
983
+
984
+ module_eval(<<'.,.,', 'mof.y', 247)
985
+ def _reduce_53(val, _values, result)
986
+ if val[4]
987
+ raise StyleError.new(@name,@lineno,@line,"Array not allowed in reference declaration") unless @style == :wmi
988
+ end
989
+ result = CIM::Reference.new(val[1],val[2],val[0],val[4])
990
+ result
991
+ end
992
+ .,.,
993
+
994
+ module_eval(<<'.,.,', 'mof.y', 255)
995
+ def _reduce_54(val, _values, result)
996
+ result = CIM::Method.new(val[1],val[2],val[0],val[4])
997
+ result
998
+ end
999
+ .,.,
1000
+
1001
+ # reduce 55 omitted
1002
+
1003
+ module_eval(<<'.,.,', 'mof.y', 261)
1004
+ def _reduce_56(val, _values, result)
1005
+ # tmplprov.mof has 'string Property;'
1006
+ raise StyleError.new(@name,@lineno,@line,"Invalid keyword '#{val[0]}' used for property name") unless @style == :wmi
1007
+
1008
+ result
1009
+ end
1010
+ .,.,
1011
+
1012
+ # reduce 57 omitted
1013
+
1014
+ module_eval(<<'.,.,', 'mof.y', 269)
1015
+ def _reduce_58(val, _values, result)
1016
+ result = "Indication"
1017
+ result
1018
+ end
1019
+ .,.,
1020
+
1021
+ # reduce 59 omitted
1022
+
1023
+ # reduce 60 omitted
1024
+
1025
+ # reduce 61 omitted
1026
+
1027
+ # reduce 62 omitted
1028
+
1029
+ # reduce 63 omitted
1030
+
1031
+ # reduce 64 omitted
1032
+
1033
+ # reduce 65 omitted
1034
+
1035
+ # reduce 66 omitted
1036
+
1037
+ # reduce 67 omitted
1038
+
1039
+ # reduce 68 omitted
1040
+
1041
+ # reduce 69 omitted
1042
+
1043
+ # reduce 70 omitted
1044
+
1045
+ # reduce 71 omitted
1046
+
1047
+ # reduce 72 omitted
1048
+
1049
+ # reduce 73 omitted
1050
+
1051
+ module_eval(<<'.,.,', 'mof.y', 292)
1052
+ def _reduce_74(val, _values, result)
1053
+ raise StyleError.new(@name,@lineno,@line,"'void' is not a valid datatype") unless @style == :wmi
1054
+ result
1055
+ end
1056
+ .,.,
1057
+
1058
+ module_eval(<<'.,.,', 'mof.y', 297)
1059
+ def _reduce_75(val, _values, result)
1060
+ # WMI uses class names as data types (without REF ?!)
1061
+ raise StyleError.new(@name,@lineno,@line,"Expected 'ref' keyword after classname '#{val[0]}'") unless @style == :wmi
1062
+ result = CIM::ReferenceType.new val[0]
1063
+
1064
+ result
1065
+ end
1066
+ .,.,
1067
+
1068
+ module_eval(<<'.,.,', 'mof.y', 303)
1069
+ def _reduce_76(val, _values, result)
1070
+ result = CIM::ReferenceType.new val[0]
1071
+ result
1072
+ end
1073
+ .,.,
1074
+
1075
+ # reduce 77 omitted
1076
+
1077
+ # reduce 78 omitted
1078
+
1079
+ module_eval(<<'.,.,', 'mof.y', 313)
1080
+ def _reduce_79(val, _values, result)
1081
+ result = val[1].unshift val[0]
1082
+ result
1083
+ end
1084
+ .,.,
1085
+
1086
+ module_eval(<<'.,.,', 'mof.y', 318)
1087
+ def _reduce_80(val, _values, result)
1088
+ result = []
1089
+ result
1090
+ end
1091
+ .,.,
1092
+
1093
+ module_eval(<<'.,.,', 'mof.y', 320)
1094
+ def _reduce_81(val, _values, result)
1095
+ result = val[0] << val[2]
1096
+ result
1097
+ end
1098
+ .,.,
1099
+
1100
+ module_eval(<<'.,.,', 'mof.y', 325)
1101
+ def _reduce_82(val, _values, result)
1102
+ if val[3]
1103
+ type = CIM::Array.new val[3], val[1]
1104
+ else
1105
+ type = val[1]
1106
+ end
1107
+ result = CIM::Property.new(type,val[2],val[0])
1108
+
1109
+ result
1110
+ end
1111
+ .,.,
1112
+
1113
+ # reduce 83 omitted
1114
+
1115
+ # reduce 84 omitted
1116
+
1117
+ # reduce 85 omitted
1118
+
1119
+ # reduce 86 omitted
1120
+
1121
+ # reduce 87 omitted
1122
+
1123
+ # reduce 88 omitted
1124
+
1125
+ module_eval(<<'.,.,', 'mof.y', 351)
1126
+ def _reduce_89(val, _values, result)
1127
+ raise "Default parameter value not allowed in syntax style '{@style}'" unless @style == :wmi
1128
+ result
1129
+ end
1130
+ .,.,
1131
+
1132
+ module_eval(<<'.,.,', 'mof.y', 356)
1133
+ def _reduce_90(val, _values, result)
1134
+ result = val[1]
1135
+ result
1136
+ end
1137
+ .,.,
1138
+
1139
+ module_eval(<<'.,.,', 'mof.y', 361)
1140
+ def _reduce_91(val, _values, result)
1141
+ result = -1
1142
+ result
1143
+ end
1144
+ .,.,
1145
+
1146
+ # reduce 92 omitted
1147
+
1148
+ # reduce 93 omitted
1149
+
1150
+ # reduce 94 omitted
1151
+
1152
+ module_eval(<<'.,.,', 'mof.y', 372)
1153
+ def _reduce_95(val, _values, result)
1154
+ result = val[1]
1155
+ result
1156
+ end
1157
+ .,.,
1158
+
1159
+ # reduce 96 omitted
1160
+
1161
+ # reduce 97 omitted
1162
+
1163
+ # reduce 98 omitted
1164
+
1165
+ module_eval(<<'.,.,', 'mof.y', 383)
1166
+ def _reduce_99(val, _values, result)
1167
+ result = val[1]
1168
+ result
1169
+ end
1170
+ .,.,
1171
+
1172
+ # reduce 100 omitted
1173
+
1174
+ module_eval(<<'.,.,', 'mof.y', 389)
1175
+ def _reduce_101(val, _values, result)
1176
+ result = [ val[0] ]
1177
+ result
1178
+ end
1179
+ .,.,
1180
+
1181
+ module_eval(<<'.,.,', 'mof.y', 391)
1182
+ def _reduce_102(val, _values, result)
1183
+ result = val[0] << val[2]
1184
+ result
1185
+ end
1186
+ .,.,
1187
+
1188
+ # reduce 103 omitted
1189
+
1190
+ # reduce 104 omitted
1191
+
1192
+ # reduce 105 omitted
1193
+
1194
+ # reduce 106 omitted
1195
+
1196
+ # reduce 107 omitted
1197
+
1198
+ # reduce 108 omitted
1199
+
1200
+ module_eval(<<'.,.,', 'mof.y', 402)
1201
+ def _reduce_109(val, _values, result)
1202
+ raise "Instance as property value not allowed in syntax style '{@style}'" unless @style == :wmi
1203
+ result
1204
+ end
1205
+ .,.,
1206
+
1207
+ # reduce 110 omitted
1208
+
1209
+ # reduce 111 omitted
1210
+
1211
+ # reduce 112 omitted
1212
+
1213
+ # reduce 113 omitted
1214
+
1215
+ # reduce 114 omitted
1216
+
1217
+ # reduce 115 omitted
1218
+
1219
+ module_eval(<<'.,.,', 'mof.y', 416)
1220
+ def _reduce_116(val, _values, result)
1221
+ result = val[0] + val[1]
1222
+ result
1223
+ end
1224
+ .,.,
1225
+
1226
+ # reduce 117 omitted
1227
+
1228
+ # reduce 118 omitted
1229
+
1230
+ # reduce 119 omitted
1231
+
1232
+ # reduce 120 omitted
1233
+
1234
+ # reduce 121 omitted
1235
+
1236
+ # reduce 122 omitted
1237
+
1238
+ # reduce 123 omitted
1239
+
1240
+ # reduce 124 omitted
1241
+
1242
+ # reduce 125 omitted
1243
+
1244
+ # reduce 126 omitted
1245
+
1246
+ # reduce 127 omitted
1247
+
1248
+ # reduce 128 omitted
1249
+
1250
+ # reduce 129 omitted
1251
+
1252
+ module_eval(<<'.,.,', 'mof.y', 471)
1253
+ def _reduce_130(val, _values, result)
1254
+ result = CIM::QualifierDeclaration.new( val[1], val[2][0], val[2][1], val[3], val[4])
1255
+ result
1256
+ end
1257
+ .,.,
1258
+
1259
+ # reduce 131 omitted
1260
+
1261
+ # reduce 132 omitted
1262
+
1263
+ # reduce 133 omitted
1264
+
1265
+ # reduce 134 omitted
1266
+
1267
+ # reduce 135 omitted
1268
+
1269
+ # reduce 136 omitted
1270
+
1271
+ # reduce 137 omitted
1272
+
1273
+ module_eval(<<'.,.,', 'mof.y', 490)
1274
+ def _reduce_138(val, _values, result)
1275
+ type = val[2].nil? ? val[1] : CIM::Array.new(val[2],val[1])
1276
+ result = [ type, val[3] ]
1277
+
1278
+ result
1279
+ end
1280
+ .,.,
1281
+
1282
+ module_eval(<<'.,.,', 'mof.y', 497)
1283
+ def _reduce_139(val, _values, result)
1284
+ result = CIM::QualifierScopes.new(val[3])
1285
+ result
1286
+ end
1287
+ .,.,
1288
+
1289
+ module_eval(<<'.,.,', 'mof.y', 502)
1290
+ def _reduce_140(val, _values, result)
1291
+ result = [ val[0] ]
1292
+ result
1293
+ end
1294
+ .,.,
1295
+
1296
+ module_eval(<<'.,.,', 'mof.y', 504)
1297
+ def _reduce_141(val, _values, result)
1298
+ result = val[0] << val[2]
1299
+ result
1300
+ end
1301
+ .,.,
1302
+
1303
+ # reduce 142 omitted
1304
+
1305
+ # reduce 143 omitted
1306
+
1307
+ # reduce 144 omitted
1308
+
1309
+ # reduce 145 omitted
1310
+
1311
+ # reduce 146 omitted
1312
+
1313
+ # reduce 147 omitted
1314
+
1315
+ # reduce 148 omitted
1316
+
1317
+ # reduce 149 omitted
1318
+
1319
+ # reduce 150 omitted
1320
+
1321
+ # reduce 151 omitted
1322
+
1323
+ module_eval(<<'.,.,', 'mof.y', 522)
1324
+ def _reduce_152(val, _values, result)
1325
+ result = CIM::QualifierFlavors.new val[3]
1326
+ result
1327
+ end
1328
+ .,.,
1329
+
1330
+ module_eval(<<'.,.,', 'mof.y', 527)
1331
+ def _reduce_153(val, _values, result)
1332
+ result = [ val[0] ]
1333
+ result
1334
+ end
1335
+ .,.,
1336
+
1337
+ module_eval(<<'.,.,', 'mof.y', 529)
1338
+ def _reduce_154(val, _values, result)
1339
+ result = val[0] << val[2]
1340
+ result
1341
+ end
1342
+ .,.,
1343
+
1344
+ # reduce 155 omitted
1345
+
1346
+ # reduce 156 omitted
1347
+
1348
+ # reduce 157 omitted
1349
+
1350
+ # reduce 158 omitted
1351
+
1352
+ # reduce 159 omitted
1353
+
1354
+ module_eval(<<'.,.,', 'mof.y', 553)
1355
+ def _reduce_160(val, _values, result)
1356
+ raise "Instance property '#{val[1]} must have a value" unless @style == :wmi
1357
+ result
1358
+ end
1359
+ .,.,
1360
+
1361
+ def _reduce_none(val, _values, result)
1362
+ val[0]
1363
+ end
1364
+
1365
+ end # class Parser
1366
+ end # module MOF
1367
+
1368
+