Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
您可以查看 Yield Prolog。
Yield Prolog 使用 C#(以及 Python 和 JavaScript)中的
yield
关键字和自定义Variable
类来模拟 Prolog 机器。这样,您就可以使用您最喜欢的语言获得 Prolog API。您不需要将您的主要语言与 P# 或类似项目连接起来。You can take a look at Yield Prolog.
Yield Prolog uses
yield
keyword in C# (and Python, and JavaScript) and customVariable
class to simulate Prolog machine. This way, you get a Prolog API in your favourite language. You don't need to connect your main language with P# or similiar projects.它不是免费的,但 Sicstus Prolog 允许连接到 C# 和
Java是我们公司使用的 Prolog 实现,它非常快速且有用。
It's not free, but Sicstus Prolog allows connection to C# and Java
This is the Prolog implementation we use at our company, and it is very fast and useful.
C#Prolog,可从 SourceForge 获取(用 C# 编写的 Prolog 解释器)
C#Prolog, available from SourceForge (Prolog interpreter written in C#)
如果您的 prolog 是 swi-prolog,您有两种选择。
旧的且基本上已弃用的版本是 http://www.swi-prolog.org/ contrib/CSharp.html
更新、更好的一个是 swicli。
http://www.swi-prolog.org/contrib/NetMono.html
If your prolog is swi-prolog, you have two choices.
The older, and essentially deprecated, version is http://www.swi-prolog.org/contrib/CSharp.html
The newer, much better one is swicli.
http://www.swi-prolog.org/contrib/NetMono.html
也许P#会对你有用
Perhaps P# will be useful for you
您可以使用 ECLiPSe Prolog。
我已经把它和VC8集成了。使用VC8而不是C#会更好。
You can use ECLiPSe Prolog.
i have integrated it with VC8. it would be better to use VC8 instead of C#.
如果使用完整的 prolog 实现进行部署不是问题,您可以使用 SWI-Prolog 并通过 XPCE 和套接字与其进行对话。
If deployment with a full prolog implementation is not a problem you can use SWI-Prolog and talk to it via XPCE and sockets.