Permalink
Browse files

- Fixed bin/r2r_show to use ruby_parser. oops

[git-p4: depot-paths = "//src/ruby2ruby/dev/": change = 5341]
  • Loading branch information...
1 parent 2b9b3b1 commit c2d90deb3f659351035d82675bf8a0662b94002a @zenspider zenspider committed Aug 2, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 bin/r2r_show
View
@@ -2,7 +2,7 @@
require 'rubygems'
require 'ruby2ruby'
-require 'parse_tree'
+require 'ruby_parser'
$h ||= false
$s ||= false
@@ -18,13 +18,13 @@ 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

0 comments on commit c2d90de

Please sign in to comment.