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