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