1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/insns2vm.rb
k0kubun c8e5796f61 insns2vm.rb: make #generate_parser private
which is only used by #router.

To make it private, we need to stop defining them on top-level.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-27 02:14:20 +00:00

15 lines
321 B
Ruby
Executable file

#!ruby
# This is used by Makefile.in to generate .inc files.
# See Makefile.in for details.
require_relative 'ruby_vm/scripts/insns2vm'
if $0 == __FILE__
RubyVM::Insns2VM.router(ARGV).each do |(path, generator)|
str = generator.generate path
path.open 'wb:utf-8' do |fp|
fp.write str
end
end
end