Sha256: f58405e43e2528b272968b1adb410194b6a0facc2de906efd51373d52e8a5e2e
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
#Thankfully, whitespace doesn't matter in SGF, unless you're inside a comment. #This makes it possible to indent an SGF file and let it be somewhat human-readable. require '../lib/sgf' if ARGV.size != 2 puts "Usage:\n sgf_indent source.sgf destination.sgf" exit end parser = SGF::Parser.new tree = parser.parse ARGV[0] tree.save ARGV[1]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
SgfParser-2.0.0 | bin/sgf_indent.rb |