With a great deal of help from some Treetop experts, I've been
able to create a parser and emitter for KIF. Because of the
approach I have taken, these should be quite insensitive to
small syntactic vagaries. Here is a sample translation:
( retrieve [ :retrieve,
10 10,
( ?x Person ) [ :'?x', :Person ],
( happy ?x ) [ :happy, :'?x' ]
) ]
Although there is more work to be done (eg, adding diagnostics,
running against a corpus of "real" KIF), I think that most of
the hard issues are out of the way. For more information, see
http://cfcl.com/twiki/bin/view/Projects/Arti/Patterns/RubyKif_H2.
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm@...
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
_______________________________________________
powerloom-forum mailing list
powerloom-forum@...
http://mailman.isi.edu/mailman/listinfo/powerloom-forum