try_grammar
#!/usr/bin/env ruby
#
# try_grammar
require 'pp'
require 'grammar_use'
require 'ruby_kif'
t1 = [
12, 12.3, 1234567890123, :the, 'foo',
:abc, :'<=>', :':<=>', :'?foo' ]
@parser = RubyKif.new
t2 = @parser.load('(= Foo Bar)')[0]
list = [ t1, t2 ]
list.each do |t|
print "\n\n"
pp t
puts ''
pp lol_xp(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!