|
From: | Bowie Owens |
Subject: | Re: gnu prolog for java |
Date: | Fri, 05 Dec 2003 08:53:04 +1100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 |
Didier Fragne wrote:
You can either use sockets http://mail.gnu.org/archive/html/users-prolog/2003-03/msg00018.htmlHi, I'm looking for examples with gnu prolog for java. I'd like to know how i can use it in a main application in java.
Or you can use SWIG http://bedevere.sourceforge.net/I went with the SWIG option. You will have to revise the typemaps in the .i file for Java. After that you can wrapper the gprolog interface behind Java classes to make it much easier to use. It requires a little bit of hackery in some places (if anyone knows I'd still love to know how to create a choice point without resorting to Pl_Query_Begin). But it has been working quite well for me using GNU Prolog 1.2.17 (1.2.16 fails in some places).
-- Bowie Owens CSIRO Mathematical & Information Sciences phone : +61 3 9545 8055 fax : +61 3 9545 8080 mobile : 0425 729 875 email : address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |