Sha256: ca308577ae6a29a4dacb239fcbd516b84f253cbe7071923c8a8cc41ac98815f9

Contents?: true

Size: 297 Bytes

Versions: 1

Compression:

Stored size: 297 Bytes

Contents

#!/usr/bin/env ruby

trap('INT') do |status|
  exit! 128+status
end

require 'unparser'
require 'parser/current'

ARGV.each do |file|
  source = File.read(file)
  node = Parser::CurrentRuby.parse(source)
  $stderr.puts "File: #{file}"
  $stderr.puts node.inspect
  puts Unparser.unparse(node)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unparser-0.0.6 bin/unparse