racc 1.5.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.ja.rdoc +0 -1
- data/README.rdoc +6 -7
- data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
- data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
- data/doc/en/grammar2.en.rdoc +219 -0
- data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/command.ja.html +0 -0
- data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/index.ja.html +0 -0
- data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/usage.ja.html +0 -0
- data/ext/racc/cparse/cparse.c +1 -1
- data/ext/racc/cparse/extconf.rb +1 -0
- data/lib/racc/info.rb +1 -1
- data/lib/racc/parser-text.rb +1 -1
- data/lib/racc/parser.rb +1 -1
- data/lib/racc/parserfilegenerator.rb +0 -44
- data/lib/racc/statetransitiontable.rb +2 -8
- metadata +15 -121
- data/Rakefile +0 -79
- data/ext/racc/com/headius/racc/Cparse.java +0 -849
- data/lib/racc/pre-setup +0 -13
- data/sample/array.y +0 -67
- data/sample/array2.y +0 -59
- data/sample/calc-ja.y +0 -66
- data/sample/calc.y +0 -65
- data/sample/conflict.y +0 -15
- data/sample/hash.y +0 -60
- data/sample/lalr.y +0 -17
- data/sample/lists.y +0 -57
- data/sample/syntax.y +0 -46
- data/sample/yyerr.y +0 -46
- data/test/assets/cadenza.y +0 -170
- data/test/assets/cast.y +0 -926
- data/test/assets/chk.y +0 -126
- data/test/assets/conf.y +0 -16
- data/test/assets/csspool.y +0 -729
- data/test/assets/digraph.y +0 -29
- data/test/assets/echk.y +0 -118
- data/test/assets/edtf.y +0 -583
- data/test/assets/err.y +0 -60
- data/test/assets/error_recovery.y +0 -35
- data/test/assets/expect.y +0 -7
- data/test/assets/firstline.y +0 -4
- data/test/assets/huia.y +0 -318
- data/test/assets/ichk.y +0 -102
- data/test/assets/intp.y +0 -546
- data/test/assets/journey.y +0 -47
- data/test/assets/liquor.y +0 -313
- data/test/assets/machete.y +0 -423
- data/test/assets/macruby.y +0 -2197
- data/test/assets/mailp.y +0 -437
- data/test/assets/mediacloth.y +0 -599
- data/test/assets/mof.y +0 -649
- data/test/assets/namae.y +0 -302
- data/test/assets/nasl.y +0 -626
- data/test/assets/newsyn.y +0 -25
- data/test/assets/noend.y +0 -4
- data/test/assets/nokogiri-css.y +0 -255
- data/test/assets/nonass.y +0 -41
- data/test/assets/normal.y +0 -27
- data/test/assets/norule.y +0 -4
- data/test/assets/nullbug1.y +0 -25
- data/test/assets/nullbug2.y +0 -15
- data/test/assets/opal.y +0 -1807
- data/test/assets/opt.y +0 -123
- data/test/assets/percent.y +0 -35
- data/test/assets/php_serialization.y +0 -98
- data/test/assets/recv.y +0 -97
- data/test/assets/riml.y +0 -665
- data/test/assets/rrconf.y +0 -14
- data/test/assets/ruby18.y +0 -1943
- data/test/assets/ruby19.y +0 -2174
- data/test/assets/ruby20.y +0 -2350
- data/test/assets/ruby21.y +0 -2359
- data/test/assets/ruby22.y +0 -2381
- data/test/assets/scan.y +0 -72
- data/test/assets/syntax.y +0 -50
- data/test/assets/tp_plus.y +0 -622
- data/test/assets/twowaysql.y +0 -278
- data/test/assets/unterm.y +0 -5
- data/test/assets/useless.y +0 -12
- data/test/assets/yyerr.y +0 -46
- data/test/bench.y +0 -36
- data/test/helper.rb +0 -115
- data/test/infini.y +0 -8
- data/test/regress/cadenza +0 -796
- data/test/regress/cast +0 -3428
- data/test/regress/csspool +0 -2314
- data/test/regress/edtf +0 -1794
- data/test/regress/huia +0 -1392
- data/test/regress/journey +0 -222
- data/test/regress/liquor +0 -885
- data/test/regress/machete +0 -833
- data/test/regress/mediacloth +0 -1463
- data/test/regress/mof +0 -1368
- data/test/regress/namae +0 -634
- data/test/regress/nasl +0 -2058
- data/test/regress/nokogiri-css +0 -836
- data/test/regress/opal +0 -6431
- data/test/regress/php_serialization +0 -336
- data/test/regress/riml +0 -3283
- data/test/regress/ruby18 +0 -6344
- data/test/regress/ruby22 +0 -7460
- data/test/regress/tp_plus +0 -1933
- data/test/regress/twowaysql +0 -556
- data/test/scandata/brace +0 -7
- data/test/scandata/gvar +0 -1
- data/test/scandata/normal +0 -4
- data/test/scandata/percent +0 -18
- data/test/scandata/slash +0 -10
- data/test/src.intp +0 -34
- data/test/start.y +0 -20
- data/test/test_chk_y.rb +0 -52
- data/test/test_grammar_file_parser.rb +0 -15
- data/test/test_racc_command.rb +0 -339
- data/test/test_scan_y.rb +0 -52
- data/test/testscanner.rb +0 -51
- data/web/racc.en.rhtml +0 -42
- data/web/racc.ja.rhtml +0 -51
data/test/regress/mof
DELETED
@@ -1,1368 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.5.0
|
4
|
-
# from Racc grammar file "".
|
5
|
-
#
|
6
|
-
|
7
|
-
require 'racc/parser.rb'
|
8
|
-
|
9
|
-
|
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, 27, 63, 17, 145, 146,
|
106
|
-
147, 62, 28, 172, 11, 173, 174, 173, 148, 11,
|
107
|
-
144, 149, 150, 151, 152, 18, 163, 173, 33, 153,
|
108
|
-
106, 107, 108, 109, 110, 112, 111, 40, 15, 16,
|
109
|
-
42, 55, 57, 68, 69, 71, 72, 52, 53, 54,
|
110
|
-
56, 163, 7, 199, 35, 42, 174, 7, 10, 10,
|
111
|
-
115, 102, 114, 36, 10, 55, 57, 68, 69, 71,
|
112
|
-
72, 52, 53, 54, 56, 51, 190, 44, -77, 42,
|
113
|
-
33, 189, 10, 10, 33, 102, 51, 164, 60, 10,
|
114
|
-
55, 57, 68, 69, 71, 72, 52, 53, 54, 56,
|
115
|
-
170, 35, 10, 21, 42, 22, 23, 10, 29, 31,
|
116
|
-
102, 35, 95, 96, 55, 57, 25, 65, 24, 78,
|
117
|
-
52, 53, 54, 56, 97, 55, 57, 35, 180, 181,
|
118
|
-
100, 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, 191, 192, 102, 60,
|
122
|
-
55, 57, 68, 69, 71, 72, 52, 53, 54, 56,
|
123
|
-
145, 146, 147, 172, 113, 97, 174, 10, 18, 118,
|
124
|
-
148, 119, 144, 149, 150, 151, 152, 173, 121, 124,
|
125
|
-
35, 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, 126, 22, 23, 127, 129, 21, 10, 22, 23,
|
129
|
-
130, 131, 133, 25, 135, 24, 10, 141, 154, 25,
|
130
|
-
35, 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, 184, 185, 194, 200, 121, 207,
|
133
|
-
-59, 121, 209, 211, 135, 135, 218, 220, 221, 226,
|
134
|
-
228, 229, 231, 10, 121, 135 ]
|
135
|
-
|
136
|
-
racc_action_check = [
|
137
|
-
1, 140, 135, 186, 140, 12, 37, 8, 131, 131,
|
138
|
-
131, 37, 13, 194, 0, 140, 194, 186, 131, 1,
|
139
|
-
131, 131, 131, 131, 131, 8, 189, 194, 16, 131,
|
140
|
-
65, 65, 65, 65, 65, 65, 65, 20, 7, 7,
|
141
|
-
20, 135, 135, 135, 135, 135, 135, 135, 135, 135,
|
142
|
-
135, 211, 0, 187, 17, 135, 187, 1, 135, 0,
|
143
|
-
75, 135, 75, 18, 1, 189, 189, 189, 189, 189,
|
144
|
-
189, 189, 189, 189, 189, 33, 177, 26, 207, 189,
|
145
|
-
29, 177, 189, 207, 30, 189, 96, 137, 34, 137,
|
146
|
-
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
|
147
|
-
138, 36, 138, 10, 211, 10, 10, 211, 15, 15,
|
148
|
-
211, 169, 47, 47, 33, 33, 10, 38, 10, 43,
|
149
|
-
33, 33, 33, 33, 49, 96, 96, 216, 142, 142,
|
150
|
-
58, 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, 178, 178, 60, 61,
|
154
|
-
42, 42, 42, 42, 42, 42, 42, 42, 42, 42,
|
155
|
-
181, 181, 181, 218, 66, 70, 218, 42, 74, 77,
|
156
|
-
181, 78, 181, 181, 181, 181, 181, 218, 94, 98,
|
157
|
-
100, 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, 102, 11, 11, 103, 116, 63, 115, 63, 63,
|
161
|
-
118, 119, 121, 11, 122, 11, 127, 130, 132, 63,
|
162
|
-
161, 63, 44, 44, 44, 44, 44, 44, 44, 44,
|
163
|
-
44, 44, 44, 44, 44, 44, 44, 192, 192, 192,
|
164
|
-
192, 192, 192, 192, 162, 164, 183, 188, 195, 196,
|
165
|
-
197, 198, 201, 205, 206, 208, 210, 212, 213, 217,
|
166
|
-
221, 222, 223, 229, 230, 233 ]
|
167
|
-
|
168
|
-
racc_action_pointer = [
|
169
|
-
-5, 0, nil, nil, nil, nil, nil, 32, -2, nil,
|
170
|
-
95, 222, -58, 12, nil, 101, -30, 46, 32, nil,
|
171
|
-
-21, nil, nil, nil, nil, nil, 11, nil, nil, 22,
|
172
|
-
26, nil, nil, 67, 60, nil, 93, -54, 51, nil,
|
173
|
-
155, nil, 123, 59, 220, nil, nil, 53, nil, 76,
|
174
|
-
nil, nil, nil, nil, nil, nil, nil, nil, 64, nil,
|
175
|
-
101, 141, nil, 228, nil, 18, 125, nil, nil, nil,
|
176
|
-
137, nil, nil, nil, 161, 0, nil, 129, 171, nil,
|
177
|
-
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
178
|
-
nil, nil, nil, nil, 134, nil, 78, nil, 138, nil,
|
179
|
-
192, nil, 223, 173, nil, nil, nil, nil, nil, nil,
|
180
|
-
nil, nil, nil, nil, nil, 173, 172, nil, 214, 183,
|
181
|
-
nil, 195, 176, nil, nil, nil, nil, 182, nil, nil,
|
182
|
-
189, -1, 183, nil, nil, -6, nil, 25, 38, 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, 242, 208, nil, 212, nil, nil, nil, nil, 103,
|
186
|
-
nil, nil, nil, nil, nil, nil, nil, 13, 107, nil,
|
187
|
-
nil, 171, nil, 207, nil, nil, -5, 45, 248, 18,
|
188
|
-
nil, nil, 255, nil, 5, 214, 221, 222, 217, nil,
|
189
|
-
nil, 219, nil, nil, nil, 215, 216, 19, 217, nil,
|
190
|
-
226, 43, 224, 229, nil, nil, 119, 226, 175, nil,
|
191
|
-
nil, 227, 231, 284, nil, nil, nil, nil, nil, 229,
|
192
|
-
230, nil, nil, 227, 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, 48, 66,
|
222
|
-
49, 76, 50, 19, 143, 187, 58, 204, 215, 32,
|
223
|
-
139, 61, 2, 14, 12, 12, 1, 30, 47, 98,
|
224
|
-
137, 171, 45, 46, 165, 166, 167, 168, 37, 26,
|
225
|
-
232, 227, 38, 103, 64, 39, 41, 99, 101, 195,
|
226
|
-
198, 196, 213, 214, 222, 223, 230, 234, 235, 132,
|
227
|
-
75, 201, 225, 182, 193, 203, 104, 210, 177, 43,
|
228
|
-
77, 123, 116, 49, 117, 50, 142, 178, 138, 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, 10, 30,
|
247
|
-
11, 30, 12, 23, 69, 39, 15, 61, 44, 7,
|
248
|
-
72, 14, 2, 2, 55, 55, 1, 8, 9, 16,
|
249
|
-
17, 72, 7, 7, 18, 19, 20, 21, 24, 25,
|
250
|
-
44, 61, 26, 15, 27, 29, 31, 33, 34, 36,
|
251
|
-
40, 41, 42, 43, 45, 46, 47, 48, 50, 51,
|
252
|
-
54, 52, 39, 58, 69, 60, 23, 62, 63, 64,
|
253
|
-
65, 10, 66, 11, 67, 12, 68, 70, 71, 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, 26, 22, nil, nil, nil, nil, 3, 12, -5,
|
272
|
-
-25, -23, -21, 0, -15, -18, -29, -94, -103, -102,
|
273
|
-
-101, -100, nil, 3, 19, 28, 22, 6, -60, 25,
|
274
|
-
-31, 26, nil, -11, -12, -41, -137, -90, -116, -154,
|
275
|
-
-137, -135, -155, -154, -189, -161, -161, -167, -176, nil,
|
276
|
-
-175, -62, -128, nil, 18, 24, nil, nil, -98, nil,
|
277
|
-
-129, -177, -137, -72, 43, 27, -5, -3, -55, -117,
|
278
|
-
-64, -49, -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
|
-
|