将 Prolog 与 C# 集成

发布于 2024-09-26 00:11:48 字数 1536 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

箹锭⒈辈孓 2024-10-03 00:11:48

您可以查看 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 custom Variable 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.

℡Ms空城旧梦 2024-10-03 00:11:48

它不是免费的,但 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.

少跟Wǒ拽 2024-10-03 00:11:48

C#Prolog,可从 SourceForge 获取(用 C# 编写的 Prolog 解释器)

C#Prolog, available from SourceForge (Prolog interpreter written in C#)

川水往事 2024-10-03 00:11:48

如果您的 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

寄居人 2024-10-03 00:11:48

也许P#会对你有用

Perhaps P# will be useful for you

鸠书 2024-10-03 00:11:48

您可以使用 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#.

她比我温柔 2024-10-03 00:11:48

如果使用完整的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文