# # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.16 # from Racc grammar file "". # require 'racc/parser.rb' # parser.rb - generated by racc require 'strscan' require 'rubygems' require 'cim' require File.join(File.dirname(__FILE__), 'result') require File.join(File.dirname(__FILE__), 'scanner') require File.join(File.dirname(__FILE__), 'helper') module MOF class Parser < Racc::Parser module_eval(<<'...end mof.y/module_eval...', 'mof.y', 571) # # Initialize MOF::Parser # MOF::Parser.new options = {} # # options -> Hash of options # :debug -> boolean # :includes -> array of include dirs # :style -> :cim or :wmi # def initialize options = {} @yydebug = options[:debug] @includes = options[:includes] || [] @quiet = options[:quiet] @style = options[:style] || :cim # default to style CIM v2.2 syntax @lineno = 1 @file = nil @iconv = nil @eol = "\n" @fname = nil @fstack = [] @in_comment = false @seen_files = [] @qualifiers = {} end # # Make options hash from argv # # returns [ files, options ] # def self.argv_handler name, argv files = [] options = { :namespace => "" } while argv.size > 0 case opt = argv.shift when "-h" $stderr.puts "Ruby MOF compiler" $stderr.puts "#{name} [-h] [-d] [-I