How to use prolog in java?

Please help me with an example. I would like to create a simple Prolog program that combines two numbers, and the Java program writes them to the console! Thus, Prolog adds, and the Java program records the result. I can write an add in the prolog, but I do not know how to call the prolog program in java. = (Please, someone who can create this small example, write it here! Thanks!

+3
source share
3 answers

You can try using GNU Prolog for Java . Running an existing prolog file looks right here . I have not tried myself, but it would be interesting to see if it works.

+3

, Prolog Java, - tuProlog, Prolog Java. http://www.alice.unibo.it/xwiki/bin/view/Tuprolog/ .

, tuProlog , (, Yap ..), , , .

+2

there is also an open source JProl library that can be used for training in Prolog

0
source

All Articles