Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Prolog with C# [closed]

Does anyone know of a nice (and preferably free) way to integrate Prolog and C#?

Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog).

I have seen this question which talks about Prologs real world usage but I was wondering if anyone had either any experience with c# & Prolog? or a nice tutorial/article?

like image 655
TK. Avatar asked Oct 08 '08 08:10

TK.


4 Answers

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.

like image 96
zuber Avatar answered Nov 17 '22 19:11

zuber


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.

like image 3
Torbjörn Josefsson Avatar answered Nov 17 '22 20:11

Torbjörn Josefsson


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

like image 3
James Reynolds Avatar answered Nov 17 '22 20:11

James Reynolds


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

like image 2
Anniepoo Avatar answered Nov 17 '22 19:11

Anniepoo