Lea
Lea

Reputation: 47

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. Nothing complicated, only displaying some text, click button and on that click the result would be displayed. I preffer 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#.

Upvotes: 1

Views: 314

Answers (1)

fferri
fferri

Reputation: 18940

ECLiPSe CLP has a C/C++ interface for embedding the interpreter in your application: http://eclipseclp.org/doc/embedding/embroot.html

It appears that you can use C libraries from C#:

SWI-Prolog has a C# interface: http://www.swi-prolog.org/contrib/CSharp.txt

Upvotes: 1

Related Questions