kif_kb_parse

#!/usr/bin/env ruby
#
# kif_kb_parse - parse *.plm files below kif_kb

require 'ruby_kif'

@parser = RubyKif.new

files = Dir.glob('kif_kb/**/*.plm')

puts '*' * 60 #T

files.each do |file|
  puts file

  File.open(file) do |f|
    inp = f.read
    begin
      out = @parser.load(inp) 
      puts out.size
    rescue => e
      puts e
      next
    end
  end
  puts '*' * 60 #T
end


This wiki page is maintained by Rich Morin, an independent consultant specializing in software design, development, and documentation. Please feel free to email comments, inquiries, suggestions, etc!

Topic revision: r2 - 04 Jul 2008, RichMorin
This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email