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!

Topic revision: r2 - 05 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