summaryrefslogtreecommitdiff
path: root/jni/ruby/tool/insns2vm.rb
blob: f518707f11e604019157671552c7976e6433f568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!ruby

require 'optparse'

Version = %w$Revision: 11626 $[1..-1]

require "#{File.join(File.dirname(__FILE__), 'instruction')}"

if $0 == __FILE__
  opts = ARGV.options
  maker = RubyVM::SourceCodeGenerator.def_options(opts)
  files = opts.parse!
  generator = maker.call
  generator.generate(files)
end