bin/r2r_show in ruby2ruby-1.2.3 vs bin/r2r_show in ruby2ruby-1.2.4

- old
+ new

@@ -1,10 +1,10 @@ #!/usr/bin/ruby -ws require 'rubygems' require 'ruby2ruby' -require 'parse_tree' +require 'ruby_parser' $h ||= false $s ||= false if $h then @@ -16,16 +16,16 @@ exit 1 end ARGV.push "-" if ARGV.empty? -parse_tree = ParseTree.new -ruby2ruby = Ruby2Ruby.new +parser = RubyParser.new +ruby2ruby = Ruby2Ruby.new ARGV.each do |file| ruby = file == "-" ? $stdin.read : File.read(file) - sexp = parse_tree.process(ruby, nil, file) + sexp = parser.process(ruby, file) p sexp if $s puts ruby2ruby.process(sexp) end