Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (10 sloc) 299 Bytes
#!/usr/bin/env ruby
require 'pp'
begin require 'rubygems' rescue LoadError end
require 'parse_tree'
ARGV.push "-" if ARGV.empty?
parse_tree = ParseTree.new(true)
ARGV.each do |file|
ruby = file == "-" ? $stdin.read : File.read(file)
pp parse_tree.parse_tree_for_string(ruby, file).first
end
Jump to Line
Something went wrong with that request. Please try again.