# # DO NOT MODIFY!!!! # This file is automatically generated by racc 1.4.5 # from racc grammer file "lib/mof/parser.y". # require 'racc/parser' # 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 lib/mof/parser.y modeval..idbe2b713bdc', 'lib/mof/parser.y', 566 # # 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