[英]Integrating Prolog CLP(FD) with C#
I've got a prolog code with constraints over finite domain and I would like to make some GUI for that. 我有一个有限域约束的序言代码,我想为此做一些GUI。 Nothing complicated, only displaying some text, click button and on that click the result would be displayed. 没什么复杂的,只显示一些文本,单击按钮,然后单击该按钮将显示结果。 I preffer C# & Visual Studio. 我喜欢C#和Visual Studio。 Is there a way to do it? 有办法吗? I found some examples integrating prolog with C#, but the major problem is that my code is with constraints and it seems to be the biggest problem to 'connect'/'convert' the prolog code to C#. 我发现了一些将Prolog与C#集成的示例,但是主要问题是我的代码受约束,并且将Prolog代码“连接” /“转换”为C#似乎是最大的问题。
ECLiPSe CLP has a C/C++ interface for embedding the interpreter in your application: http://eclipseclp.org/doc/embedding/embroot.html ECLiPSe CLP具有一个C / C ++接口,用于将解释器嵌入到您的应用程序中: http : //eclipseclp.org/doc/embedding/embroot.html
It appears that you can use C libraries from C#: 看来您可以使用C#中的C库:
SWI-Prolog has a C# interface: http://www.swi-prolog.org/contrib/CSharp.txt SWI-Prolog具有C#接口: http : //www.swi-prolog.org/contrib/CSharp.txt
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.