Sha256: 05d2ba5b65022e2e09b75e2726e03adf70687b1c858d7d078b531758045fb84a
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
#!/usr/bin/ruby -ws require 'rubygems' require 'ruby2ruby' require 'parse_tree' $h ||= false $s ||= false if $h then puts "usage: #{File.basename $0} [options] [file...]" puts "options:" puts "-h : display usage" puts "-s : print the sexp before displaying the translated ruby" exit 1 end ARGV.push "-" if ARGV.empty? parse_tree = ParseTree.new ruby2ruby = Ruby2Ruby.new ARGV.each do |file| ruby = file == "-" ? $stdin.read : File.read(file) sexp = parse_tree.process(ruby, nil, file) p sexp if $s puts ruby2ruby.process(sexp) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby2ruby-1.2.3 | bin/r2r_show |
ruby2ruby-1.2.2 | bin/r2r_show |