2006-12-31 10:02:22 -05:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
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-06-29 01:52:18 -04:00
|
|
|
require "#{File.join(File.dirname(__FILE__), '../lib/vm/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
|