Sha256: 9bb2d1d644e50e40cdd81b7aad5e189ddf6a5afaf1cc1c1cd555818537c28e0e

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

#!/usr/bin/env ruby

require 'to_source'

ARGV.each do |path|
  source = File.read(path)
  ast = source.to_ast
  next if ast.nil? # When file only has comments
  $stderr.puts(path)
  begin 
    $stdout.puts(ToSource.to_source(ast))
  rescue
    ast.ascii_graph
    $stderr.puts("Error in: #{path}")
    raise
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
to_source-0.2.16 bin/to_source