为编程语言编写包装器
我想写一个 ruby 包装器 swi-prolog。谁能告诉我如何继续写一篇?
如果有人请解释一下在尝试编写此类内容时需要考虑哪些步骤,我将不胜感激。
I want to write a ruby wrapper swi-prolog. Can anyone please tell me how to proceed with writing one?
I would appreciate if anyone please explain me what steps need to be considered while attempting to write this sort.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看 Mauricio Fernandez 的这篇文章:
http://eigenclass.org/hiki .rb?tiny+prolog+in+ruby
当您完成此操作后,Jamis Buck 会提供一篇后续文章,介绍如何使事情变得更加 Rubyish:
http://weblog.jamisbuck.org/2006/10/28/prolog-in-ruby
编辑:
我还发现了 PySwip,它是一个 GPL Python - SWI-Prolog 桥接器。尽管它不是 Ruby,但它可能会为您提供一些关于如何解决问题的好主意。
You can look at this post by Mauricio Fernandez:
http://eigenclass.org/hiki.rb?tiny+prolog+in+ruby
When you are done with that, there's a follow-up article with ideas on how to make things more Rubyish by Jamis Buck:
http://weblog.jamisbuck.org/2006/10/28/prolog-in-ruby
Edit:
I also found PySwip which is a GPL Python - SWI-Prolog bridge. Even though it's not Ruby, it probably gives you some good ideas about how to tackle the problem.