2008-10-17 01:30:13 +00:00
|
|
|
#!ruby
|
2006-12-31 15:02:22 +00:00
|
|
|
|
2007-02-06 01:03:55 +00:00
|
|
|
require 'optparse'
|
|
|
|
|
2007-06-29 05:52:18 +00:00
|
|
|
Version = %w$Revision: 11626 $[1..-1]
|
2007-02-06 01:03:55 +00:00
|
|
|
|
2007-12-22 01:34:09 +00:00
|
|
|
require "#{File.join(File.dirname(__FILE__), 'instruction')}"
|
2006-12-31 15:02:22 +00:00
|
|
|
|
|
|
|
if $0 == __FILE__
|
2007-02-06 01:03:55 +00:00
|
|
|
opts = ARGV.options
|
2007-06-29 05:52:18 +00:00
|
|
|
maker = RubyVM::SourceCodeGenerator.def_options(opts)
|
2007-02-06 01:03:55 +00:00
|
|
|
files = opts.parse!
|
2007-06-29 05:52:18 +00:00
|
|
|
generator = maker.call
|
|
|
|
generator.generate(files)
|
2006-12-31 15:02:22 +00:00
|
|
|
end
|