I have a prolog code for searching a book. It is a simple game. I want to make interfaces with C#. But i don't know how to connect prolog into c#. Please help me. How to conncet prolog with C#.
Asked
Active
Viewed 1,014 times
1 Answers
2
Besides the answers mentioned on the comment link there is also a SWI Prolog has a C# Interface. You can see it here.
Here is an example provided by the aforementioned link:
PlQuery q = new PlQuery("member(A, [a,b,c])");
foreach (PlTermV s in q.Solutions)
Console.WriteLine(s[0].ToString());
There is a full documentation.

Community
- 1
- 1

Shevliaskovic
- 1,562
- 4
- 26
- 43